Class WSSecurityEngineResult

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.apache.wss4j.dom.engine.WSSecurityEngineResult
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class WSSecurityEngineResult extends HashMap<String,Object>
See Also:
  • Field Details

    • TAG_SAML_ASSERTION

      public static final String TAG_SAML_ASSERTION
      Tag denoting the SAML Assertion found, if applicable. The value under this tag is of type SamlAssertionWrapper.
      See Also:
    • TAG_TIMESTAMP

      public static final String TAG_TIMESTAMP
      Tag denoting the timestamp found, if applicable. The value under this tag is of type org.apache.wss4j.dom.message.token.Timestamp.
      See Also:
    • TAG_SECURITY_CONTEXT_TOKEN

      public static final String TAG_SECURITY_CONTEXT_TOKEN
      Tag denoting references to the DOM elements that have been cryptographically protected. The value under this tag is of type SecurityContextToken.
      See Also:
    • TAG_USERNAME_TOKEN

      public static final String TAG_USERNAME_TOKEN
      Tag denoting a UsernameToken object
      See Also:
    • TAG_DERIVED_KEY_TOKEN

      public static final String TAG_DERIVED_KEY_TOKEN
      Tag denoting a DerivedKeyToken object
      See Also:
    • TAG_SIGNATURE_CONFIRMATION

      public static final String TAG_SIGNATURE_CONFIRMATION
      Tag denoting the signature confirmation of a signed element, if applicable. The value under this tag is of type org.apache.wss4j.dom.message.token.SignatureConfirmation.
      See Also:
    • TAG_BINARY_SECURITY_TOKEN

      public static final String TAG_BINARY_SECURITY_TOKEN
      Tag denoting the BinarySecurityToken found, if applicable. The value under this tag is of type BinarySecurity.
      See Also:
    • TAG_TRANSFORMED_TOKEN

      public static final String TAG_TRANSFORMED_TOKEN
      Tag denoting a Transformed Token. For certain tokens, the Validator may return an SamlAssertionWrapper instance which corresponds to a transformed version of the initial token. For example, a Username Token credential might be validated by an STS and transformed into a SAML Assertion. This tag then holds the transformed SamlAssertionWrapper instance, as a component of the Result corresponding to the Username Token. The value under this tag is of type SamlAssertionWrapper.
      See Also:
    • TAG_VALIDATED_TOKEN

      public static final String TAG_VALIDATED_TOKEN
      Tag denoting that the TAG_*_TOKEN result has been validated by a Validator implementation. Some of the processors do not have a default validator implementation, and so this is not set. Note that this is set for the NoOpValidator if it is configured. The value under this tag is a Boolean instance.
      See Also:
    • TAG_TOKEN_ELEMENT

      public static final String TAG_TOKEN_ELEMENT
      Tag denoting the DOM Element of the processed token (if a token has been processed). The value under this tag is of type org.w3c.dom.Element
      See Also:
    • TAG_X509_CERTIFICATE

      public static final String TAG_X509_CERTIFICATE
      Tag denoting the X.509 certificate found, if applicable. The value under this tag is of type java.security.cert.X509Certificate.
      See Also:
    • TAG_SIGNATURE_VALUE

      public static final String TAG_SIGNATURE_VALUE
      Tag denoting the signature value of a signed element, if applicable. The value under this tag is of type byte[].
      See Also:
    • TAG_X509_CERTIFICATES

      public static final String TAG_X509_CERTIFICATES
      Tag denoting the X.509 certificate chain found, if applicable. The value under this tag is of type java.security.cert.X509Certificate[].
      See Also:
    • TAG_X509_REFERENCE_TYPE

      public static final String TAG_X509_REFERENCE_TYPE
      Tag denoting how the X.509 certificate (chain) was referenced, if applicable. The value under this tag is of type STRParser.REFERENCE_TYPE.
      See Also:
    • TAG_ENCRYPTED_EPHEMERAL_KEY

      public static final String TAG_ENCRYPTED_EPHEMERAL_KEY
      Tag denoting the encrypted key bytes The value under this tag is a byte array
      See Also:
    • TAG_SECRET

      public static final String TAG_SECRET
      Tag denoting a byte[] secret associated with this token
      See Also:
    • TAG_PUBLIC_KEY

      public static final String TAG_PUBLIC_KEY
      Tag denoting a PublicKey associated with this token
      See Also:
    • TAG_ACTION

      public static final String TAG_ACTION
      Tag denoting the cryptographic operation performed The value under this tag is of type java.lang.Integer
      See Also:
    • TAG_PRINCIPAL

      public static final String TAG_PRINCIPAL
      Tag denoting the security principal found, if applicable. The value under this tag is of type java.security.Principal.
      See Also:
    • TAG_SUBJECT

      public static final String TAG_SUBJECT
      Tag denoting the security subject found, if applicable. The value under this tag is of type javax.security.auth.Subject.
      See Also:
    • TAG_DATA_REF_URIS

      public static final String TAG_DATA_REF_URIS
      Tag denoting references to a List of Data ref URIs. The value under this tag is of type List.
      See Also:
    • TAG_ENCRYPTED_KEY_TRANSPORT_METHOD

      public static final String TAG_ENCRYPTED_KEY_TRANSPORT_METHOD
      Tag denoting the encrypted key transport algorithm. The value under this tag is of type String.
      See Also:
    • TAG_SIGNATURE_METHOD

      public static final String TAG_SIGNATURE_METHOD
      Tag denoting the algorithm that was used to sign the message The value under this tag is of type String.
      See Also:
    • TAG_CANONICALIZATION_METHOD

      public static final String TAG_CANONICALIZATION_METHOD
      Tag denoting the algorithm that was used to do canonicalization The value under this tag is of type String.
      See Also:
    • TAG_DELEGATION_CREDENTIAL

      public static final String TAG_DELEGATION_CREDENTIAL
      Tag denoting a delegation credential found, if applicable. For Kerberos (if delegation is enabled), the value under this tag is of type GSSCredential
      See Also:
    • TAG_ID

      public static final String TAG_ID
      The (wsu) Id of the token corresponding to this result.
      See Also:
  • Constructor Details

    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, SamlAssertionWrapper ass)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, Principal princ, X509Certificate[] certs, byte[] sv)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, Principal princ, X509Certificate[] certs, List<WSDataRef> dataRefs, byte[] sv)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, byte[] decryptedKey, byte[] encryptedKeyBytes, List<WSDataRef> dataRefUris)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, byte[] decryptedKey, byte[] encryptedKeyBytes, List<WSDataRef> dataRefUris, X509Certificate[] certs)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, List<WSDataRef> dataRefUris)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, Timestamp tstamp)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, SecurityContextToken sct)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, SignatureConfirmation sc)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, UsernameToken usernameToken)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, UsernameToken usernameToken, Principal principal)
    • WSSecurityEngineResult

      public WSSecurityEngineResult(int act, BinarySecurity token, X509Certificate[] certs)