public class AuthnStatement extends AuthnStatementType implements AuthnStatement
AuthnStatement element supplies a
statement by the issuer that its subject was authenticated by a
particular means at a particular time. The
AuthnStatement element is of type
AuthnStatementType, which extends the
SubjectStatementAbstractType with the additional element and
attributes.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
authnContext, authnInstant, sessionIndex, sessionNotOnOrAfter, subjectLocality| Modifier | Constructor and Description |
|---|---|
protected |
AuthnStatement()
Default constructor
|
|
AuthnStatement(AuthnStatementType authStmtType) |
|
AuthnStatement(GregorianCalendar authInstant,
SubjectLocality subjectLocality,
AuthnContext authnContext,
String sessionIndex,
GregorianCalendar sessionNotOnOrAfter)
Constructor for authentication statement
|
| Modifier and Type | Method and Description |
|---|---|
static AuthnStatementType |
fromElement(Element element)
This constructor builds an authentication statement element from an
existing XML block.
|
String |
getAuthenticatingAuthority()
Gets the value of the AuthnContext's AuthenticatingAuthority property.
|
String |
getAuthnContextClassRef()
Gets the value of the AuthnContext's AuthnContextClassRef property.
|
Date |
getAuthnInstantDate()
Gets the value of the authnInstant property.
|
String |
getSessionIndex()
Gets the value of the sessionIndex property.
|
Date |
getSessionNotOnOrAfterDate()
Gets the value of the sessionNotOnOrAfter property.
|
String |
getSubjectLocalityAddress()
Gets the value of the SubjectLocality address property.
|
String |
getSubjectLocalityDNSName()
Gets the value of the SubjectLocality dnsName property.
|
getAuthnContext, getAuthnInstant, getSessionNotOnOrAfter, getSubjectLocality, setAuthnContext, setAuthnInstant, setSessionIndex, setSessionNotOnOrAfter, setSubjectLocalityprotected static final Logger log
protected AuthnStatement()
public AuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext, String sessionIndex, GregorianCalendar sessionNotOnOrAfter)
authInstant - A GregorianCalendar specifies the time at which the
authentication that took place.subjectLocality - A SubjectLocality object.public AuthnStatement(AuthnStatementType authStmtType)
public static AuthnStatementType fromElement(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 Date getAuthnInstantDate()
AuthnStatementgetAuthnInstantDate in interface AuthnStatementDatepublic Date getSessionNotOnOrAfterDate()
AuthnStatementgetSessionNotOnOrAfterDate in interface AuthnStatementDatepublic String getSubjectLocalityAddress()
AuthnStatementgetSubjectLocalityAddress in interface AuthnStatementStringpublic String getSubjectLocalityDNSName()
AuthnStatementgetSubjectLocalityDNSName in interface AuthnStatementStringpublic String getAuthnContextClassRef()
AuthnStatementgetAuthnContextClassRef in interface AuthnStatementStringpublic String getAuthenticatingAuthority()
AuthnStatementgetAuthenticatingAuthority in interface AuthnStatementStringpublic String getSessionIndex()
AuthnStatementTypegetSessionIndex in interface AuthnStatementgetSessionIndex in class AuthnStatementTypeStringCopyright © 2005–2018 Oracle Corporation. All rights reserved.