Class AuthnStatementImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml2.core.impl.AuthnStatementImpl
- All Implemented Interfaces:
XMLObject
,SAMLObject
,AuthnStatement
,Statement
public class AuthnStatementImpl extends AbstractXMLObject implements AuthnStatement
A concrete implementation of
AuthnStatement
.-
Field Summary
Fields Modifier and Type Field Description private AuthnContext
authnContext
Authentication Context of the Authentication Statement.private Instant
authnInstant
Time of the authentication.private String
sessionIndex
Index of the session.private Instant
sessionNotOnOrAfter
Time at which the session ends.private SubjectLocality
subjectLocality
Subject Locality of the Authentication Statement.Fields inherited from interface org.opensaml.saml.saml2.core.AuthnStatement
AUTHN_INSTANT_ATTRIB_NAME, AUTHN_INSTANT_ATTRIB_QNAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, SESSION_INDEX_ATTRIB_NAME, SESSION_NOT_ON_OR_AFTER_ATTRIB_NAME, SESSION_NOT_ON_OR_AFTER_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuthnStatementImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor. -
Method Summary
Modifier and Type Method Description AuthnContext
getAuthnContext()
Gets the context used to authenticate the subject.Instant
getAuthnInstant()
Gets the time when the authentication took place.List<XMLObject>
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.String
getSessionIndex()
Get the session index between the principal and the authenticating authority.Instant
getSessionNotOnOrAfter()
Get the time when the session between the principal and the SAML authority ends.SubjectLocality
getSubjectLocality()
Get the DNS domain and IP address of the system where the principal was authenticated.void
setAuthnContext(AuthnContext newAuthnContext)
Sets the context used to authenticate the subject.void
setAuthnInstant(Instant newAuthnInstant)
Sets the time when the authentication took place.void
setSessionIndex(String newSessionIndex)
Sets the session index between the principal and the authenticating authority.void
setSessionNotOnOrAfter(Instant newSessionNotOnOrAfter)
Set the time when the session between the principal and the SAML authority ends.void
setSubjectLocality(SubjectLocality newSubjectLocality)
Set the DNS domain and IP address of the system where the principal was authenticated.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
subjectLocality
Subject Locality of the Authentication Statement. -
authnContext
Authentication Context of the Authentication Statement. -
authnInstant
Time of the authentication. -
sessionIndex
Index of the session. -
sessionNotOnOrAfter
Time at which the session ends.
-
-
Constructor Details
-
AuthnStatementImpl
Constructor.- Parameters:
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespace
-
-
Method Details
-
getSubjectLocality
Get the DNS domain and IP address of the system where the principal was authenticated.- Specified by:
getSubjectLocality
in interfaceAuthnStatement
- Returns:
- the DNS domain and IP address of the system where the principal was authenticated
-
setSubjectLocality
Set the DNS domain and IP address of the system where the principal was authenticated.- Specified by:
setSubjectLocality
in interfaceAuthnStatement
- Parameters:
newSubjectLocality
- the DNS domain and IP address of the system where the principal was authenticated
-
getAuthnContext
Gets the context used to authenticate the subject.- Specified by:
getAuthnContext
in interfaceAuthnStatement
- Returns:
- the context used to authenticate the subject
-
setAuthnContext
Sets the context used to authenticate the subject.- Specified by:
setAuthnContext
in interfaceAuthnStatement
- Parameters:
newAuthnContext
- the context used to authenticate the subject
-
getAuthnInstant
Gets the time when the authentication took place.- Specified by:
getAuthnInstant
in interfaceAuthnStatement
- Returns:
- the time when the authentication took place
-
setAuthnInstant
Sets the time when the authentication took place.- Specified by:
setAuthnInstant
in interfaceAuthnStatement
- Parameters:
newAuthnInstant
- the time when the authentication took place
-
getSessionIndex
Get the session index between the principal and the authenticating authority.- Specified by:
getSessionIndex
in interfaceAuthnStatement
- Returns:
- the session index between the principal and the authenticating authority
-
setSessionIndex
Sets the session index between the principal and the authenticating authority.- Specified by:
setSessionIndex
in interfaceAuthnStatement
- Parameters:
newSessionIndex
- the session index between the principal and the authenticating authority
-
getSessionNotOnOrAfter
Get the time when the session between the principal and the SAML authority ends.- Specified by:
getSessionNotOnOrAfter
in interfaceAuthnStatement
- Returns:
- the time when the session between the principal and the SAML authority ends
-
setSessionNotOnOrAfter
Set the time when the session between the principal and the SAML authority ends.- Specified by:
setSessionNotOnOrAfter
in interfaceAuthnStatement
- Parameters:
newSessionNotOnOrAfter
- the time when the session between the principal and the SAML authority ends
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-