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 theAuthnContext
property.Returns the value of theAuthnInstant
attribute.Returns the value of theSessionIndex
attribute.Returns the value of theSessionNotOnOrAfter
attribute.Returns the value of theSubjectLocality
property.void
setAuthnContext
(AuthnContext value) Sets the value of theAuthnContext
property.void
setAuthnInstant
(Date value) Sets the value of theAuthnInstant
attribute.void
setSessionIndex
(String value) Sets the value of theSessionIndex
attribute.void
setSessionNotOnOrAfter
(Date value) Sets the value of theSessionNotOnOrAfter
attribute.void
Sets the value of theSubjectLocality
property.Methods inherited from interface com.sun.identity.saml2.assertion.Statement
isMutable, makeImmutable
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
getAuthnContext
AuthnContext getAuthnContext()Returns the value of theAuthnContext
property.- Returns:
AuthnContext
of the statement.- See Also:
-
setAuthnContext
Sets the value of theAuthnContext
property.- Parameters:
value
- newAuthnContext
.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getAuthnInstant
Date getAuthnInstant()Returns the value of theAuthnInstant
attribute.- Returns:
- the value of the
AuthnInstant
attribute. - See Also:
-
setAuthnInstant
Sets the value of theAuthnInstant
attribute.- Parameters:
value
- new value ofAuthnInstant
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getSubjectLocality
SubjectLocality getSubjectLocality()Returns the value of theSubjectLocality
property.- Returns:
SubjectLocality
of the statement.- See Also:
-
setSubjectLocality
Sets the value of theSubjectLocality
property.- 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 theSessionIndex
attribute.- Returns:
- the value of the
SessionIndex
attribute. - See Also:
-
setSessionIndex
Sets the value of theSessionIndex
attribute.- Parameters:
value
- new value ofSessionIndex
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getSessionNotOnOrAfter
Date getSessionNotOnOrAfter()Returns the value of theSessionNotOnOrAfter
attribute.- Returns:
- the value of
SessionNotOnOrAfter
attribute. - See Also:
-
setSessionNotOnOrAfter
Sets the value of theSessionNotOnOrAfter
attribute.- Parameters:
value
- newSessionNotOnOrAfter
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-