|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.identity.saml.assertion.Statement
com.sun.identity.saml.assertion.SubjectStatement
com.sun.identity.saml.assertion.AuthenticationStatement
public class AuthenticationStatement
The AuthenticationStatement element supplies a
statement by the issuer that its subject was authenticated by a
particular means at a particular time. The
AuthenticationStatement element is of type
AuthenticationStatementType, which extends the
SubjectStatementAbstractType with the additional element and
attributes.
| Field Summary | |
|---|---|
protected Date |
_authenticationInstant
|
protected String |
_authenticationMethod
|
protected List |
_authorityBinding
|
protected SubjectLocality |
_subjectLocality
|
| Fields inherited from class com.sun.identity.saml.assertion.SubjectStatement |
|---|
_subject |
| Fields inherited from class com.sun.identity.saml.assertion.Statement |
|---|
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED |
| Constructor Summary | |
|---|---|
protected |
AuthenticationStatement()
Default constructor |
|
AuthenticationStatement(Element element)
Constructs an authentication statement element from an existing XML block. |
|
AuthenticationStatement(String authMethod,
Date authInstant,
Subject subject)
Constructs Authentication statement |
|
AuthenticationStatement(String authMethod,
Date authInstant,
Subject subject,
SubjectLocality subjectLocality,
List authorityBinding)
Constructs AuthenticationStatement |
| Method Summary | |
|---|---|
protected AuthorityBinding |
createAuthorityBinding(Element authorityBindingElement)
|
protected Subject |
createSubject(Element subjectElement)
|
protected SubjectLocality |
createSubjectLocality(Element subjectLocalityElement)
|
String |
getAuthenticaionMethod()
Returns AuthenticationMethod from authentication statement |
Date |
getAuthenticationInstant()
Returns AuthenticationInstant from authentication statement. |
List |
getAuthorityBinding()
Returns the AuthorityBinding from
AuthenticationStatement. |
int |
getStatementType()
Gets the real type of the Statement. |
SubjectLocality |
getSubjectLocality()
Returns the SubjectLocality from
AuthenticationStatement |
boolean |
setAuthenticaionMethod(String authenticationmethod)
Sets AuthenticationMethod for
AuthenticationStatement. |
boolean |
setAuthenticationInstant(Date authenticationinstant)
Sets AuthenticationInstant for
AuthenticationStatement. |
boolean |
setAuthorityBinding(List authoritybinding)
Sets the AuthorityBinding for
AuthenticationStatement. |
boolean |
setSubjectLocality(SubjectLocality subjectlocality)
Sets the SubjectLocality for
AuthenticationStatement. |
String |
toString()
Returns a String representation of the Authentication Statement. |
String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the AuthenticationStatement |
| Methods inherited from class com.sun.identity.saml.assertion.SubjectStatement |
|---|
getSubject, setSubject |
| Field Detail |
|---|
protected String _authenticationMethod
protected Date _authenticationInstant
protected SubjectLocality _subjectLocality
protected List _authorityBinding
| Constructor Detail |
|---|
protected AuthenticationStatement()
public AuthenticationStatement(Element element)
throws SAMLException
element - representing a DOM tree element.
SAMLException - if there is an error in the sender or in the
element definition.
public AuthenticationStatement(String authMethod,
Date authInstant,
Subject subject)
throws SAMLException
Authentication statement
authMethod - (optional) A String specifies the type of
authentication that took place.authInstant - (optional) A String specifies the time at which
the authentication took place.subject - (required) A Subject object
SAMLException - if there is an error in the sender.
public AuthenticationStatement(String authMethod,
Date authInstant,
Subject subject,
SubjectLocality subjectLocality,
List authorityBinding)
throws SAMLException
AuthenticationStatement
authMethod - (optional) A String specifies the type of
authentication that took place.authInstant - (optional) A String specifies the time at which the
authentication that took place.subject - (required) A Subject objectsubjectLocality - (optional) A SubjectLocality object.authorityBinding - (optional) A List of
AuthorityBinding objects.
SAMLException - if there is an error in the sender.| Method Detail |
|---|
public SubjectLocality getSubjectLocality()
SubjectLocality from
AuthenticationStatement
SubjectLocality object within the authentication
statement.public boolean setSubjectLocality(SubjectLocality subjectlocality)
SubjectLocality for
AuthenticationStatement.
subjectlocality - The SubjectLocality object within
the AuthenticationStatement.
public String getAuthenticaionMethod()
AuthenticationMethod from authentication statement
public boolean setAuthenticaionMethod(String authenticationmethod)
AuthenticationMethod for
AuthenticationStatement.
authenticationmethod - input authentication method
public Date getAuthenticationInstant()
AuthenticationInstant from authentication statement.
public boolean setAuthenticationInstant(Date authenticationinstant)
AuthenticationInstant for
AuthenticationStatement.
authenticationinstant - The date/time when the authentication
statement is created.
public List getAuthorityBinding()
AuthorityBinding from
AuthenticationStatement.
AuthorityBinding objectspublic boolean setAuthorityBinding(List authoritybinding)
AuthorityBinding for
AuthenticationStatement.
authoritybinding - A list of the AuthorityBinding
objects.
public int getStatementType()
getStatementType in class Statementpublic String toString()
toString in class Object<saml:AuthenticationStatement>
element.
public String toString(boolean includeNS,
boolean declareNS)
AuthenticationStatement
toString in class SubjectStatementincludeNS - Determines whether or not the namespace qualifier is
prepended to the Element when converteddeclareNS - Determines whether or not the namespace is declared
within the Element.
<saml:AuthenticationStatement> element.
protected Subject createSubject(Element subjectElement)
throws SAMLException
SAMLException
protected SubjectLocality createSubjectLocality(Element subjectLocalityElement)
throws SAMLException
SAMLException
protected AuthorityBinding createAuthorityBinding(Element authorityBindingElement)
throws SAMLException
SAMLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||