com.sun.identity.wss.security
Class X509TokenSpec

java.lang.Object
  extended by 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 implements SecurityTokenSpec interface.


Field Summary
static String DIRECT_REFERENCE
           
static String ISSUER_SERIAL
           
static String KEY_IDENTIFIER
           
 
Constructor Summary
X509TokenSpec(String[] certAlias, String valueType, String encodingType)
          Constructor that defines this specfication.
 
Method Summary
 String getEncodingType()
          Returns the encoding type.
 String getReferenceType()
          Returns the token reference type.
 String[] getSubjectCertAlias()
          Returns the array of certificate aliases defined in this spec.
 String getValueType()
          Returns the X509 token type.
 void setReferenceType(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.