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 theSTRTransformimplementation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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
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
-
-