Package org.apache.wss4j.dom.transform
Class STRTransformUtil
- java.lang.Object
-
- org.apache.wss4j.dom.transform.STRTransformUtil
-
public final class STRTransformUtil extends Object
Utility class exposing the dereferencing LOG.c of theSTRTransform
implementation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Element
createBSTX509(Document doc, X509Certificate cert, Element secRefE)
static Element
createBSTX509(Document doc, X509Certificate cert, Element secRefE, String secRefEncType)
static Element
dereferenceSTR(Document doc, SecurityTokenReference secRef, WSDocInfo wsDocInfo)
Retrieves the element representing the referenced content of a STR.
-
-
-
Method Detail
-
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
doc
or a new element is created in the case of a key identifier or issuer serial STR.null
ifsecRef
does 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
-
-