Package com.sun.identity.saml2.assertion
Interface AuthnStatement
- All Superinterfaces:
Statement,XmlSerializable
The
AuthnStatement element describes a statement by the
SAML authority asserting that the assertion subject was authenticated
by a particular means at a particular time. It is of type
AuthnStatementType.
<complexType name="AuthnStatementType">
<complexContent>
<extension base="{urn:oasis:names:tc:SAML:2.0:assertion}
StatementAbstractType">
<sequence>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
SubjectLocality" minOccurs="0"/>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContext"/>
</sequence>
<attribute name="AuthnInstant" use="required"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
<attribute name="SessionIndex"
type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="SessionNotOnOrAfter"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
</extension>
</complexContent>
</complexType>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theAuthnContextproperty.Returns the value of theAuthnInstantattribute.Returns the value of theSessionIndexattribute.Returns the value of theSessionNotOnOrAfterattribute.Returns the value of theSubjectLocalityproperty.voidsetAuthnContext(AuthnContext value) Sets the value of theAuthnContextproperty.voidsetAuthnInstant(Date value) Sets the value of theAuthnInstantattribute.voidsetSessionIndex(String value) Sets the value of theSessionIndexattribute.voidsetSessionNotOnOrAfter(Date value) Sets the value of theSessionNotOnOrAfterattribute.voidSets the value of theSubjectLocalityproperty.Methods inherited from interface com.sun.identity.saml2.assertion.Statement
isMutable, makeImmutableMethods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
getAuthnContext
AuthnContext getAuthnContext()Returns the value of theAuthnContextproperty.- Returns:
AuthnContextof the statement.- See Also:
-
setAuthnContext
Sets the value of theAuthnContextproperty.- Parameters:
value- newAuthnContext.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getAuthnInstant
Date getAuthnInstant()Returns the value of theAuthnInstantattribute.- Returns:
- the value of the
AuthnInstantattribute. - See Also:
-
setAuthnInstant
Sets the value of theAuthnInstantattribute.- Parameters:
value- new value ofAuthnInstantattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getSubjectLocality
SubjectLocality getSubjectLocality()Returns the value of theSubjectLocalityproperty.- Returns:
SubjectLocalityof the statement.- See Also:
-
setSubjectLocality
Sets the value of theSubjectLocalityproperty.- Parameters:
value- the new value ofSubjectLocality.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getSessionIndex
String getSessionIndex()Returns the value of theSessionIndexattribute.- Returns:
- the value of the
SessionIndexattribute. - See Also:
-
setSessionIndex
Sets the value of theSessionIndexattribute.- Parameters:
value- new value ofSessionIndexattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getSessionNotOnOrAfter
Date getSessionNotOnOrAfter()Returns the value of theSessionNotOnOrAfterattribute.- Returns:
- the value of
SessionNotOnOrAfterattribute. - See Also:
-
setSessionNotOnOrAfter
Sets the value of theSessionNotOnOrAfterattribute.- Parameters:
value- newSessionNotOnOrAfterattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-