Package com.sun.identity.wss.security
Class AssertionTokenSpec
- java.lang.Object
-
- com.sun.identity.wss.security.AssertionTokenSpec
-
- All Implemented Interfaces:
SecurityTokenSpec
public class AssertionTokenSpec extends Object implements SecurityTokenSpec
This class implements the interfaceSecurityTokenSpecto createSAML1.0andSAML1.1Assertions / Security Tokens.
-
-
Constructor Summary
Constructors Constructor Description AssertionTokenSpec()AssertionTokenSpec(NameIdentifier nameIdentifier, SecurityMechanism securityMechanism, String certAlias)Construtor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppliesTo()Returns the name of the service for which assertion needs to be issuedStringgetAssertionID()Returns the assertion identifier.longgetAssertionInterval()Returns the assertion intervalStringgetAuthenticationMethod()Returns the authentication methodMap<QName,List<String>>getClaimedAttributes()Returns the cliamed attributesStringgetConfirmationMethod()Returns the confirmation method.StringgetIssuer()Returns the issuer name.ElementgetKeyInfo()Returns the keyinfo element.SecurityMechanismgetSecurityMechanism()Returns the security mechanismNameIdentifiergetSenderIdentity()Returns the authenticated subject name identifier.StringgetSigningAlias()Returns the signing aliasStringgetSubjectCertAlias()Returns the certficate alias of the subject.voidsetAppliesTo(String appliesTo)Sets the name of the service for which the assertion needs to be issued.voidsetAssertionID(String assertionID)Sets the assertion identifier.voidsetAssertionInterval(long interval)Sets the assertion intervalvoidsetAuthenticationMethod(String authMethod)Sets the authentication methodvoidsetClaimedAttributes(Map attrs)Sets the claimed attributesvoidsetConfirmationMethod(String confirmationMethod)Sets the confirmation methodvoidsetIssuer(String issuer)Sets the issuer name.voidsetKeyInfo(Element keyInfo)Sets the keyinfo element.voidsetSenderIdentity(NameIdentifier nameID)Sets the sender identityvoidsetSigningAlias(String alias)Sets the signing cert alias.voidsetSubjectCertAlias(String certAlias)Sets the certificate alias of the subject.
-
-
-
Constructor Detail
-
AssertionTokenSpec
public AssertionTokenSpec()
-
AssertionTokenSpec
public AssertionTokenSpec(NameIdentifier nameIdentifier, SecurityMechanism securityMechanism, String certAlias)
Construtor- Parameters:
nameIdentifier- the name identifier of the authenticated subject.securityMechanism- the security mechanism that should be used to generate the assertion token.certAlias- the public key certificate alias of the authenticated subject.
-
-
Method Detail
-
getSenderIdentity
public NameIdentifier getSenderIdentity()
Returns the authenticated subject name identifier.- Returns:
- the name identifier of the authenticated subject.
-
setSenderIdentity
public void setSenderIdentity(NameIdentifier 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<QName,List<String>> 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 long getAssertionInterval()
Returns the assertion interval- Returns:
- the assertion interval
-
setAssertionInterval
public void setAssertionInterval(long interval)
Sets the assertion interval- Parameters:
interval- the assertion interval.
-
getAuthenticationMethod
public String getAuthenticationMethod()
Returns the authentication method- Returns:
- the authentication method
-
setAuthenticationMethod
public void setAuthenticationMethod(String authMethod)
Sets the authentication method- Parameters:
authMethod- the authentication method.
-
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.
-
getKeyInfo
public Element getKeyInfo()
Returns the keyinfo element.- Returns:
- the keyinfo element.
-
setKeyInfo
public void setKeyInfo(Element keyInfo)
Sets the keyinfo element.- Parameters:
keyInfo- the keyinfo element.
-
-