com.sun.identity.wss.security
Class SAML2TokenSpec

java.lang.Object
  extended by com.sun.identity.wss.security.SAML2TokenSpec
All Implemented Interfaces:
SecurityTokenSpec

public class SAML2TokenSpec
extends Object
implements SecurityTokenSpec

This class implements the interface SecurityTokenSpec to create SAML2 Assertions / Security tokens.


Constructor Summary
SAML2TokenSpec()
           
SAML2TokenSpec(NameID nameIdentifier, SecurityMechanism securityMechanism, String certAlias)
          Creates a new instance of SAML2TokenSpec
 
Method Summary
 String getAppliesTo()
          Returns the name of the service for which assertion needs to be issued
 String getAssertionID()
          Returns the assertion identifier.
 int getAssertionInterval()
          Returns the assertion interval
 String getAuthnContextClassRef()
          Returns the authentication context class ref
 Map getClaimedAttributes()
          Returns the cliamed attributes
 String getConfirmationMethod()
          Returns the confirmation method.
 String getIssuer()
          Returns the issuer name.
 SecurityMechanism getSecurityMechanism()
          Returns the security mechanism
 NameID getSenderIdentity()
          Returns the authenticated subject name identifier.
 String getSigningAlias()
          Returns the signing alias
 String getSubjectCertAlias()
          Returns the certficate alias of the subject.
 void setAppliesTo(String appliesTo)
          Sets the name of the service for which the assertion needs to be issued.
 void setAssertionID(String assertionID)
          Sets the assertion identifier.
 void setAssertionInterval(int interval)
          Sets the assertion interval
 void setAuthnContextClassRef(String authnContextClassRef)
          Sets the authentication context class ref.
 void setClaimedAttributes(Map attrs)
          Sets the claimed attributes
 void setConfirmationMethod(String confirmationMethod)
          Sets the confirmation method
 void setIssuer(String issuer)
          Sets the issuer name.
 void setSenderIdentity(NameID nameID)
          Sets the sender identity
 void setSigningAlias(String alias)
          Sets the signing cert alias.
 void setSubjectCertAlias(String certAlias)
          Sets the certificate alias of the subject.
 

Constructor Detail

SAML2TokenSpec

public SAML2TokenSpec()

SAML2TokenSpec

public SAML2TokenSpec(NameID nameIdentifier,
                      SecurityMechanism securityMechanism,
                      String certAlias)
Creates a new instance of SAML2TokenSpec

Method Detail

getSenderIdentity

public NameID getSenderIdentity()
Returns the authenticated subject name identifier.

Returns:
the name identifier of the authenticated subject.

setSenderIdentity

public void setSenderIdentity(NameID nameID)
Sets the sender identity

Parameters:
nameID - the sender's name identifier.

getSecurityMechanism

public SecurityMechanism getSecurityMechanism()
Returns the security mechanism

Returns:
the security mechanism

getSubjectCertAlias

public String getSubjectCertAlias()
Returns the certficate alias of the subject.

Returns:
the certificate alias of the subject.

setSubjectCertAlias

public void setSubjectCertAlias(String certAlias)
Sets the certificate alias of the subject.

Parameters:
certAlias - the certificate alias of the subject.

getIssuer

public String getIssuer()
Returns the issuer name.

Returns:
the issuer name.

setIssuer

public void setIssuer(String issuer)
Sets the issuer name.

Parameters:
issuer - the issuer name.

getClaimedAttributes

public Map getClaimedAttributes()
Returns the cliamed attributes

Returns:
the cliamed attributes

setClaimedAttributes

public void setClaimedAttributes(Map attrs)
Sets the claimed attributes

Parameters:
attrs - the claimed attributes

getConfirmationMethod

public String getConfirmationMethod()
Returns the confirmation method.

Returns:
the confirmation method.

setConfirmationMethod

public void setConfirmationMethod(String confirmationMethod)
Sets the confirmation method

Parameters:
confirmationMethod - the confirmation method

getAppliesTo

public String getAppliesTo()
Returns the name of the service for which assertion needs to be issued

Returns:
the name of the service for which assertion needs to be issued

setAppliesTo

public void setAppliesTo(String appliesTo)
Sets the name of the service for which the assertion needs to be issued.

Parameters:
appliesTo - the name of the service for which the assertion needs to be issued.

getAssertionInterval

public int getAssertionInterval()
Returns the assertion interval

Returns:
the assertion interval

setAssertionInterval

public void setAssertionInterval(int interval)
Sets the assertion interval

Parameters:
interval - the assertion interval.

getAuthnContextClassRef

public String getAuthnContextClassRef()
Returns the authentication context class ref

Returns:
the authentication context class ref

setAuthnContextClassRef

public void setAuthnContextClassRef(String authnContextClassRef)
Sets the authentication context class ref.

Parameters:
authnContextClassRef - the authentication class ref.

getAssertionID

public String getAssertionID()
Returns the assertion identifier.

Returns:
the assertion identifier.

setAssertionID

public void setAssertionID(String assertionID)
Sets the assertion identifier.

Parameters:
assertionID - the assertion identifier.

getSigningAlias

public String getSigningAlias()
Returns the signing alias

Returns:
the signing alias

setSigningAlias

public void setSigningAlias(String alias)
Sets the signing cert alias.

Parameters:
alias - the sigining cert alias.