Package org.apache.wss4j.dom.transform
Class STRTransformUtil
java.lang.Object
org.apache.wss4j.dom.transform.STRTransformUtil
Utility class exposing the dereferencing LOG.c of the
STRTransform implementation.-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementcreateBSTX509(Document doc, X509Certificate cert, Element secRefE) static ElementcreateBSTX509(Document doc, X509Certificate cert, Element secRefE, String secRefEncType) static ElementdereferenceSTR(Document doc, SecurityTokenReference secRef, WSDocInfo wsDocInfo) Retrieves the element representing the referenced content of a STR.
-
Method Details
-
dereferenceSTR
public static Element dereferenceSTR(Document doc, SecurityTokenReference secRef, WSDocInfo wsDocInfo) throws WSSecurityException Retrieves the element representing the referenced content of a STR.- Returns:
- the element representing the referenced content. The element is either
extracted from
docor a new element is created in the case of a key identifier or issuer serial STR.nullifsecRefdoes not contain a direct reference, key identifier, or issuer serial. - Throws:
WSSecurityException- If an issuer serial or key identifier is used in the STR and the certificate cannot be resolved from the crypto configuration or if there is an error working with the resolved cert
-
createBSTX509
public static Element createBSTX509(Document doc, X509Certificate cert, Element secRefE) throws WSSecurityException - Throws:
WSSecurityException
-
createBSTX509
public static Element createBSTX509(Document doc, X509Certificate cert, Element secRefE, String secRefEncType) throws WSSecurityException - Throws:
WSSecurityException
-