Class X509TokenSpec

  • All Implemented Interfaces:
    SecurityTokenSpec

    public class X509TokenSpec
    extends Object
    implements SecurityTokenSpec
    This class defines the specification for generating the X509 security tokens. It implements SecurityTokenSpec interface.
    • Constructor Detail

      • X509TokenSpec

        public X509TokenSpec​(String[] certAlias,
                             String valueType,
                             String encodingType)
        Constructor that defines this specfication.
        Parameters:
        certAlias - the array of certificate aliases that can be used to create the X509 token specification. For example the PKI PathSecurity token would need ordered list of certificates.
        valueType - the token value type. This is to indicate the value of the certificate.
        encodingType - the token encoding type of the certficates that are attached in the security header.
    • Method Detail

      • getSubjectCertAlias

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

        public String getValueType()
        Returns the X509 token type.
        Returns:
        the X509 token type.
      • getEncodingType

        public String getEncodingType()
        Returns the encoding type.
        Returns:
        the encoding type of the certificates used.
      • getReferenceType

        public String getReferenceType()
        Returns the token reference type.
        Returns:
        the reference type for the x509 token.
      • setReferenceType

        public void setReferenceType​(String referenceType)
        Sets the token reference type.