Package org.opensaml.saml.saml2.core
Interface AuthnStatement
- All Superinterfaces:
SAMLObject,Statement,XMLObject
- All Known Implementing Classes:
AuthnStatementImpl
SAML 2.0 Core AuthnStatement.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthnInstant attribute name.static final QNameAuthnInstant attribute QName.static final StringElement local name.static final QNameDefault element name.static final StringSessionIndex attribute name.static final StringSessionNoOnOrAfter attribute name.static final QNameSessionNotOnOrAfter attribute QName.static final StringLocal name of the XSI type.static final QNameQName of the XSI type. -
Method Summary
Modifier and TypeMethodDescriptionGets the context used to authenticate the subject.Gets the time when the authentication took place.Get the session index between the principal and the authenticating authority.Get the time when the session between the principal and the SAML authority ends.Get the DNS domain and IP address of the system where the principal was authenticated.voidsetAuthnContext(AuthnContext newAuthnContext) Sets the context used to authenticate the subject.voidsetAuthnInstant(Instant newAuthnInstant) Sets the time when the authentication took place.voidsetSessionIndex(String newIndex) Sets the session index between the principal and the authenticating authority.voidsetSessionNotOnOrAfter(Instant newSessionNotOnOrAfter) Set the time when the session between the principal and the SAML authority ends.voidsetSubjectLocality(SubjectLocality newLocality) Set the DNS domain and IP address of the system where the principal was authenticated.Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
Element local name.- See Also:
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
-
TYPE_NAME
QName of the XSI type. -
AUTHN_INSTANT_ATTRIB_NAME
AuthnInstant attribute name.- See Also:
-
AUTHN_INSTANT_ATTRIB_QNAME
AuthnInstant attribute QName. -
SESSION_INDEX_ATTRIB_NAME
SessionIndex attribute name.- See Also:
-
SESSION_NOT_ON_OR_AFTER_ATTRIB_NAME
SessionNoOnOrAfter attribute name.- See Also:
-
SESSION_NOT_ON_OR_AFTER_ATTRIB_QNAME
SessionNotOnOrAfter attribute QName.
-
-
Method Details
-
getAuthnInstant
Gets the time when the authentication took place.- Returns:
- the time when the authentication took place
-
setAuthnInstant
Sets the time when the authentication took place.- Parameters:
newAuthnInstant- the time when the authentication took place
-
getSessionIndex
Get the session index between the principal and the authenticating authority.- Returns:
- the session index between the principal and the authenticating authority
-
setSessionIndex
Sets the session index between the principal and the authenticating authority.- Parameters:
newIndex- 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.- 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.- Parameters:
newSessionNotOnOrAfter- the time when the session between the principal and the SAML authority ends
-
getSubjectLocality
Get the DNS domain and IP address of the system where the principal was authenticated.- 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.- Parameters:
newLocality- the DNS domain and IP address of the system where the principal was authenticated
-
getAuthnContext
Gets the context used to authenticate the subject.- Returns:
- the context used to authenticate the subject
-
setAuthnContext
Sets the context used to authenticate the subject.- Parameters:
newAuthnContext- the context used to authenticate the subject
-