public class AuthenticationStatement extends SubjectStatement
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.Modifier | Constructor and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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 |
getSubject, setSubject
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 objectSAMLException
- 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.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 statementpublic boolean setAuthenticaionMethod(String authenticationmethod)
AuthenticationMethod
for
AuthenticationStatement
.authenticationmethod
- input authentication methodpublic 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 Statement
public String toString()
public 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.protected Subject createSubject(Element subjectElement) throws SAMLException
SAMLException
protected SubjectLocality createSubjectLocality(Element subjectLocalityElement) throws SAMLException
SAMLException
protected AuthorityBinding createAuthorityBinding(Element authorityBindingElement) throws SAMLException
SAMLException
Copyright © 2010-2018, ForgeRock All Rights Reserved.