org.opensaml.saml2.core.impl
Class AuthnStatementImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.core.impl.AuthnStatementImpl
All Implemented Interfaces:
SAMLObject, AuthnStatement, Statement, ValidatingXMLObject, XMLObject

public class AuthnStatementImpl
extends AbstractSAMLObject
implements AuthnStatement

A concrete implementation of AuthnStatement.


Field Summary
private  AuthnContext authnContext
          Authentication Context of the Authentication Statement.
private  org.joda.time.DateTime authnInstant
          Time of the authentication.
private  String sessionIndex
          Index of the session.
private  org.joda.time.DateTime sessionNotOnOrAfter
          Time at which the session ends.
private  SubjectLocality subjectLocality
          Subject Locality of the Authentication Statement.
 
Fields inherited from interface org.opensaml.saml2.core.AuthnStatement
AUTHN_INSTANT_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, SESSION_INDEX_ATTRIB_NAME, SESSION_NOT_ON_OR_AFTER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected AuthnStatementImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 AuthnContext getAuthnContext()
          Gets the context used to authenticate the subject.
 org.joda.time.DateTime getAuthnInstant()
          Gets the time when the authentication took place.
 List<XMLObject> getOrderedChildren()
          
 String getSessionIndex()
          Get the session index between the principal and the authenticating authority.
 org.joda.time.DateTime 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(org.joda.time.DateTime 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(org.joda.time.DateTime 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.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

subjectLocality

private SubjectLocality subjectLocality
Subject Locality of the Authentication Statement.


authnContext

private AuthnContext authnContext
Authentication Context of the Authentication Statement.


authnInstant

private org.joda.time.DateTime authnInstant
Time of the authentication.


sessionIndex

private String sessionIndex
Index of the session.


sessionNotOnOrAfter

private org.joda.time.DateTime sessionNotOnOrAfter
Time at which the session ends.

Constructor Detail

AuthnStatementImpl

protected AuthnStatementImpl(String namespaceURI,
                             String elementLocalName,
                             String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getSubjectLocality

public SubjectLocality getSubjectLocality()
Get the DNS domain and IP address of the system where the principal was authenticated.

Specified by:
getSubjectLocality in interface AuthnStatement
Returns:
the DNS domain and IP address of the system where the principal was authenticated

setSubjectLocality

public void setSubjectLocality(SubjectLocality newSubjectLocality)
Set the DNS domain and IP address of the system where the principal was authenticated.

Specified by:
setSubjectLocality in interface AuthnStatement
Parameters:
newSubjectLocality - the DNS domain and IP address of the system where the principal was authenticated

getAuthnContext

public AuthnContext getAuthnContext()
Gets the context used to authenticate the subject.

Specified by:
getAuthnContext in interface AuthnStatement
Returns:
the context used to authenticate the subject

setAuthnContext

public void setAuthnContext(AuthnContext newAuthnContext)
Sets the context used to authenticate the subject.

Specified by:
setAuthnContext in interface AuthnStatement
Parameters:
newAuthnContext - the context used to authenticate the subject

getAuthnInstant

public org.joda.time.DateTime getAuthnInstant()
Gets the time when the authentication took place.

Specified by:
getAuthnInstant in interface AuthnStatement
Returns:
the time when the authentication took place

setAuthnInstant

public void setAuthnInstant(org.joda.time.DateTime newAuthnInstant)
Sets the time when the authentication took place.

Specified by:
setAuthnInstant in interface AuthnStatement
Parameters:
newAuthnInstant - the time when the authentication took place

getSessionIndex

public String getSessionIndex()
Get the session index between the principal and the authenticating authority.

Specified by:
getSessionIndex in interface AuthnStatement
Returns:
the session index between the principal and the authenticating authority

setSessionIndex

public void setSessionIndex(String newSessionIndex)
Sets the session index between the principal and the authenticating authority.

Specified by:
setSessionIndex in interface AuthnStatement
Parameters:
newSessionIndex - the session index between the principal and the authenticating authority

getSessionNotOnOrAfter

public org.joda.time.DateTime getSessionNotOnOrAfter()
Get the time when the session between the principal and the SAML authority ends.

Specified by:
getSessionNotOnOrAfter in interface AuthnStatement
Returns:
the time when the session between the principal and the SAML authority ends

setSessionNotOnOrAfter

public void setSessionNotOnOrAfter(org.joda.time.DateTime newSessionNotOnOrAfter)
Set the time when the session between the principal and the SAML authority ends.

Specified by:
setSessionNotOnOrAfter in interface AuthnStatement
Parameters:
newSessionNotOnOrAfter - the time when the session between the principal and the SAML authority ends

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.