Package com.sun.identity.wss.security
Class X509TokenSpec
- java.lang.Object
-
- com.sun.identity.wss.security.X509TokenSpec
-
- All Implemented Interfaces:
SecurityTokenSpec
public class X509TokenSpec extends Object implements SecurityTokenSpec
This class defines the specification for generating the X509 security tokens. It implementsSecurityTokenSpecinterface.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDIRECT_REFERENCEstatic StringISSUER_SERIALstatic StringKEY_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description X509TokenSpec(String[] certAlias, String valueType, String encodingType)Constructor that defines this specfication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncodingType()Returns the encoding type.StringgetReferenceType()Returns the token reference type.String[]getSubjectCertAlias()Returns the array of certificate aliases defined in this spec.StringgetValueType()Returns the X509 token type.voidsetReferenceType(String referenceType)Sets the token reference type.
-
-
-
Field Detail
-
DIRECT_REFERENCE
public static final String DIRECT_REFERENCE
- See Also:
- Constant Field Values
-
KEY_IDENTIFIER
public static final String KEY_IDENTIFIER
- See Also:
- Constant Field Values
-
ISSUER_SERIAL
public static final String ISSUER_SERIAL
- See Also:
- Constant Field Values
-
-
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.
-
-