Class STRTransformUtil


  • public final class STRTransformUtil
    extends Object
    Utility class exposing the dereferencing LOG.c of the STRTransform implementation.
    • Method Detail

      • dereferenceSTR

        public static Element dereferenceSTR​(Document doc,
                                             org.apache.wss4j.common.token.SecurityTokenReference secRef,
                                             WSDocInfo wsDocInfo)
                                      throws org.apache.wss4j.common.ext.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 if secRef does not contain a direct reference, key identifier, or issuer serial.
        Throws:
        org.apache.wss4j.common.ext.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 org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • createBSTX509

        public static Element createBSTX509​(Document doc,
                                            X509Certificate cert,
                                            Element secRefE,
                                            String secRefEncType)
                                     throws org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException