Class BinarySecurityToken

  • All Implemented Interfaces:
    SecurityToken

    public class BinarySecurityToken
    extends Object
    implements SecurityToken
    This class BinarySecurityToken represents an X509 token that can be inserted into web services security header for message level security.

    This class implements SecurityToken and can be created through security token factory.

    • Field Detail

      • X509V3

        public static final String X509V3
        The X509V3 value type indicates that the value name given corresponds to a X509 Certificate
        See Also:
        Constant Field Values
      • PKCS7

        public static final String PKCS7
        The PKCS7 value type indicates that the value name given corresponds to a PKCS7 object
        See Also:
        Constant Field Values
      • PKIPATH

        public static final String PKIPATH
        The PKIPATH value type indicates that the value name given corresponds to a PKI Path object
        See Also:
        Constant Field Values
      • BASE64BINARY

        public static final String BASE64BINARY
        The BASE64BINARY encoding type indicates that the encoding name given corresponds to base64 encoding of a binary value
        See Also:
        Constant Field Values
      • HEXBINARY

        public static final String HEXBINARY
        The HEXBINARY encoding type indicates that the encoding name given corresponds to Hex encoding of a binary value
        See Also:
        Constant Field Values
    • Method Detail

      • getEncodingType

        public String getEncodingType()
        Gets encoding type for the token.
        Returns:
        encoding type for the token.
      • getValueType

        public String getValueType()
        Gets value type for the token.
        Returns:
        value type for the token.
      • getId

        public String getId()
        Gets id attribute for the tokens.
        Returns:
        id attribute for the token.
      • getTokenValue

        public String getTokenValue()
        Gets value of the token.
        Returns:
        value of the token.
      • getSecretKey

        public Key getSecretKey()
        Returns the secret key for kerberos token.
        Returns:
        the secret key
      • toString

        public String toString()
        Returns a String representation of the token
        Overrides:
        toString in class Object
        Returns:
        A string containing the valid XML for this element
      • getTokenType

        public String getTokenType()
        Returns the token type.
        Specified by:
        getTokenType in interface SecurityToken
        Returns:
        String the token type.
      • getSubjectCertAlias

        public String[] getSubjectCertAlias()
        Returns the array of certificate aliases defined in this spec.
        Returns:
        String[] the array of subject certificate aliases.
      • getSigningId

        public String getSigningId()
        Returns the signing id for binary security token.
        Returns:
        the signing id for the binary security token.