public class AuthnStatement extends Statement
Modifier | Constructor and Description |
---|---|
|
AuthnStatement(org.w3c.dom.Document owner)
Creates a new
AuthnStatement instance. |
protected |
AuthnStatement(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName)
Creates a new
AuthnStatement instance. |
|
AuthnStatement(org.w3c.dom.Element element)
Creates a new
AuthnStatement instance from the given Element node. |
|
AuthnStatement(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
AuthnStatement instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
AuthnContext |
getAuthnContext()
Gets the context of the authentication.
|
java.util.Date |
getAuthnInstant()
Returns the authentication instant attribute from this element, or
null if the attribute is not specified. |
java.lang.String |
getSessionIndex()
Returns the index of the session between the subject and the authentication authority.
|
java.util.Date |
getSessionNotOnOrAfter()
Returns the time at which the session between subject and authentication authority must be considered ended.
|
SubjectLocality |
getSubjectLocality()
Gets the subject locality.
|
void |
setAuthnContext(AuthnContext authnCtx)
Sets the context of the authentication.
|
void |
setAuthnInstant(java.util.Date authenticationInstant)
Sets the time at which authentication took place.
|
void |
setSessionIndex(java.lang.String index)
Sets the index of the session between the subject and the authentication authority.
|
void |
setSessionNotOnOrAfter(java.util.Date notOnOrAfter)
Sets the time at which the session between subject and authentication authority must be considered ended.
|
void |
setSubjectLocality(SubjectLocality subjectLocality)
Sets the subject locality consisting of the IP address and/or the DNS domain name of the machine where the authentication took place.
|
getXsiType, setXsiType
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public AuthnStatement(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
AuthnStatement
instance from the given Element node.element
- An AuthnStatement element.org.w3c.dom.DOMException
public AuthnStatement(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
AuthnStatement
instance from the given Element node.element
- An AuthnStatement element.systemId
- The URI string system ID for the AuthnStatement
.org.w3c.dom.DOMException
public AuthnStatement(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
AuthnStatement
instance.owner
- The owner document of the new AuthnStatement.org.w3c.dom.DOMException
protected AuthnStatement(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName) throws org.w3c.dom.DOMException
AuthnStatement
instance. For use by classes extending the saml:AuthnStatement element.owner
- The owner document of the new element.nsURI
- The namespace in which the new element is to be created.localName
- The localName of the element.org.w3c.dom.DOMException
public void setSessionIndex(java.lang.String index)
index
- A String
value.public java.lang.String getSessionIndex()
public void setAuthnInstant(java.util.Date authenticationInstant)
authenticationInstant
- A Date
object that specifies the authentication time.public java.util.Date getAuthnInstant()
null
if the attribute is not specified.Date
object representing the time of authentication.public void setSessionNotOnOrAfter(java.util.Date notOnOrAfter)
notOnOrAfter
- A Date
object that specifies the session ended time.public java.util.Date getSessionNotOnOrAfter()
Date
object that specifies the session ended time.public void setSubjectLocality(SubjectLocality subjectLocality)
subjectLocality
- A SubjectLocality
object defining an entity.public SubjectLocality getSubjectLocality()
SubjectLocality
object containing an IP address and/or DNS domain name.public void setAuthnContext(AuthnContext authnCtx)
authnCtx
- A AuthnContext
object.public AuthnContext getAuthnContext()
AuthnContext
object.