public class AuthnStatementImpl extends Object implements AuthnStatement
AuthnStatement
.
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>
Constructor and Description |
---|
AuthnStatementImpl()
Class constructor.
|
AuthnStatementImpl(Element element)
Class constructor with
AuthnStatement in
Element format. |
AuthnStatementImpl(String xmlString)
Class constructor with
AuthnStatement in xml string format. |
Modifier and Type | Method and Description |
---|---|
AuthnContext |
getAuthnContext()
Returns the value of the
AuthnContext property. |
Date |
getAuthnInstant()
Returns the value of the
AuthnInstant attribute. |
String |
getSessionIndex()
Returns the value of the
SessionIndex attribute. |
Date |
getSessionNotOnOrAfter()
Returns the value of the
SessionNotOnOrAfter attribute. |
SubjectLocality |
getSubjectLocality()
Returns the value of the
SubjectLocality property. |
boolean |
isMutable()
Returns the mutability of the object.
|
void |
makeImmutable()
Makes the object immutable.
|
void |
setAuthnContext(AuthnContext value)
Sets the value of the
AuthnContext property. |
void |
setAuthnInstant(Date value)
Sets the value of the
AuthnInstant attribute. |
void |
setSessionIndex(String value)
Sets the value of the
SessionIndex attribute. |
void |
setSessionNotOnOrAfter(Date value)
Sets the value of the
SessionNotOnOrAfter attribute. |
void |
setSubjectLocality(SubjectLocality value)
Sets the value of the
SubjectLocality property. |
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the element.
|
public AuthnStatementImpl()
public AuthnStatementImpl(Element element) throws SAML2Exception
AuthnStatement
in
Element
format.SAML2Exception
public AuthnStatementImpl(String xmlString) throws SAML2Exception
AuthnStatement
in xml string format.SAML2Exception
public AuthnContext getAuthnContext()
AuthnContext
property.getAuthnContext
in interface AuthnStatement
AuthnContext
of the statement.setAuthnContext(AuthnContext)
public void setAuthnContext(AuthnContext value) throws SAML2Exception
AuthnContext
property.setAuthnContext
in interface AuthnStatement
value
- new AuthnContext
.SAML2Exception
- if the object is immutable.getAuthnContext()
public Date getAuthnInstant()
AuthnInstant
attribute.getAuthnInstant
in interface AuthnStatement
AuthnInstant
attribute.setAuthnInstant(Date)
public void setAuthnInstant(Date value) throws SAML2Exception
AuthnInstant
attribute.setAuthnInstant
in interface AuthnStatement
value
- new value of AuthnInstant
attribute.SAML2Exception
- if the object is immutable.getAuthnInstant()
public SubjectLocality getSubjectLocality()
SubjectLocality
property.getSubjectLocality
in interface AuthnStatement
SubjectLocality
of the statement.setSubjectLocality(SubjectLocality)
public void setSubjectLocality(SubjectLocality value) throws SAML2Exception
SubjectLocality
property.setSubjectLocality
in interface AuthnStatement
value
- the new value of SubjectLocality
.SAML2Exception
- if the object is immutable.getSubjectLocality()
public String getSessionIndex()
SessionIndex
attribute.getSessionIndex
in interface AuthnStatement
SessionIndex
attribute.setSessionIndex(String)
public void setSessionIndex(String value) throws SAML2Exception
SessionIndex
attribute.setSessionIndex
in interface AuthnStatement
value
- new value of SessionIndex
attribute.SAML2Exception
- if the object is immutable.getSessionIndex()
public Date getSessionNotOnOrAfter()
SessionNotOnOrAfter
attribute.getSessionNotOnOrAfter
in interface AuthnStatement
SessionNotOnOrAfter
attribute.setSessionNotOnOrAfter(Date)
public void setSessionNotOnOrAfter(Date value) throws SAML2Exception
SessionNotOnOrAfter
attribute.setSessionNotOnOrAfter
in interface AuthnStatement
value
- new SessionNotOnOrAfter
attribute.SAML2Exception
- if the object is immutable.getSessionNotOnOrAfter()
public void makeImmutable()
makeImmutable
in interface Statement
public boolean isMutable()
public String toXMLString() throws SAML2Exception
toXMLString
in interface Statement
SAML2Exception
- if the object does not conform to the schema.public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
toXMLString
in interface Statement
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.SAML2Exception
- if the object does not conform to the schema.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.