Class AuthenticationTokenPolicy.X509CertificateBinding

  • All Implemented Interfaces:
    SecurityPolicy, Cloneable
    Enclosing class:
    AuthenticationTokenPolicy

    public static class AuthenticationTokenPolicy.X509CertificateBinding
    extends KeyBindingBase
    A policy representing a WSS X509Certificate. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy.
    • Constructor Detail

      • X509CertificateBinding

        public X509CertificateBinding()
        Default Constructor
      • X509CertificateBinding

        public X509CertificateBinding​(String certificateIdentifier,
                                      String keyAlgorithm)
        Parameters:
        certificateIdentifier - X509Certificate identifiers like alias
        keyAlgorithm - Key algorithm to be used
    • Method Detail

      • newPrivateKeyBinding

        public MLSPolicy newPrivateKeyBinding()
        Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding
        Returns:
        a new PrivateKeyBinding as a KeyBinding for this WSSPolicy
      • setValueType

        public void setValueType​(String valueType)
        set the ValueType
        Parameters:
        valueType - Token type like X509v3, X509PKIPathv1, PKCS7
      • setEncodingType

        public void setEncodingType​(String encodingType)
        set the EncodingType
        Parameters:
        encodingType - encoding type like base64
      • setReferenceType

        public void setReferenceType​(String referenceType)
        set the ReferenceType
        Parameters:
        referenceType - KeyIdentifier, Direct etc.,.
      • setCertificateIdentifier

        public void setCertificateIdentifier​(String certificateIdentifier)
        set the Certificate Identifier
        Parameters:
        certificateIdentifier - alias, key identifier etc.,.
      • setX509Certificate

        public void setX509Certificate​(X509Certificate certificate)
        set the Certificate
        Parameters:
        certificate - X509Certificate
      • getValueType

        public String getValueType()
        Returns:
        valueType
      • getEncodingType

        public String getEncodingType()
        Returns:
        encodingType
      • getReferenceType

        public String getReferenceType()
        Returns:
        referenceType
      • getCertificateIdentifier

        public String getCertificateIdentifier()
        Returns:
        certificateIdentifier
      • getX509Certificate

        public X509Certificate getX509Certificate()
        Returns:
        X509Certificate
      • setKeyAlgorithm

        public void setKeyAlgorithm​(String keyAlgorithm)
        Parameters:
        keyAlgorithm - the keyAlgorithm
      • getKeyAlgorithm

        public String getKeyAlgorithm()
        Returns:
        the keyAlgorithm
      • setSTRID

        public void setSTRID​(String id)
      • getSTRID

        public String getSTRID()
      • getType

        public String getType()
        Description copied from interface: SecurityPolicy
        Get the type of the policy.

        Implementation Note: Useful to avoid instanceof checks and String.equals checks

        Returns:
        the type of the policy