|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.saml.assertion.Statement | +--com.sun.identity.saml.assertion.SubjectStatement | +--com.sun.identity.saml.assertion.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.
Fields inherited from class com.sun.identity.saml.assertion.Statement |
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED |
Constructor Summary | |
AuthenticationStatement(org.w3c.dom.Element element)
This constructor builds an authentication statement element from an existing XML block. |
|
AuthenticationStatement(java.lang.String authMethod,
java.util.Date authInstant,
Subject subject)
Constructor for authentication statement |
|
AuthenticationStatement(java.lang.String authMethod,
java.util.Date authInstant,
Subject subject,
SubjectLocality subjectLocality,
java.util.List authorityBinding)
Constructor for authentication statement |
Method Summary | |
java.lang.String |
getAuthenticaionMethod()
Returns AuthenticationMethod from authentication statement |
java.util.Date |
getAuthenticationInstant()
Returns AuthenticationInstant from authentication statement. |
java.util.List |
getAuthorityBinding()
Returns the AuthorityBinding from
AuthenticationStatement . |
int |
getStatementType()
Get the real type of the Statement. |
SubjectLocality |
getSubjectLocality()
Returns the SubjectLocality from
AuthenticationStatement |
boolean |
setAuthenticaionMethod(java.lang.String authenticationmethod)
Set AuthenticationMethod for
AuthenticationStatement . |
boolean |
setAuthenticationInstant(java.util.Date authenticationinstant)
Set AuthenticationInstant for
AuthenticationStatement . |
boolean |
setAuthorityBinding(java.util.List authoritybinding)
Set the AuthorityBinding for
AuthenticationStatement . |
boolean |
setSubjectLocality(SubjectLocality subjectlocality)
Set the SubjectLocality for
AuthenticationStatement . |
java.lang.String |
toString()
Returns a String representation of the Authentication Statement. |
java.lang.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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AuthenticationStatement(org.w3c.dom.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(java.lang.String authMethod, java.util.Date authInstant, Subject subject) throws SAMLException
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 objectSAMLException
- if there is an error in the sender.public AuthenticationStatement(java.lang.String authMethod, java.util.Date authInstant, Subject subject, SubjectLocality subjectLocality, java.util.List authorityBinding) throws SAMLException
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 java.lang.String getAuthenticaionMethod()
AuthenticationMethod
from authentication statementpublic boolean setAuthenticaionMethod(java.lang.String authenticationmethod)
AuthenticationMethod
for
AuthenticationStatement
.authenticationmethod
- input authentication methodpublic java.util.Date getAuthenticationInstant()
AuthenticationInstant
from authentication statement.public boolean setAuthenticationInstant(java.util.Date authenticationinstant)
AuthenticationInstant
for
AuthenticationStatement
.authenticationinstant
- The date/time when the authentication
statement is created.public java.util.List getAuthorityBinding()
AuthorityBinding
from
AuthenticationStatement
.AuthorityBinding
objectspublic boolean setAuthorityBinding(java.util.List authoritybinding)
AuthorityBinding
for
AuthenticationStatement
.authoritybinding
- A list of the AuthorityBinding
objects.public int getStatementType()
getStatementType
in class Statement
public java.lang.String toString()
toString
in class java.lang.Object
<saml:AuthenticationStatement>
element.public java.lang.String toString(boolean includeNS, boolean declareNS)
AuthenticationStatement
toString
in class SubjectStatement
includeNS
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |