com.sun.xml.wss.saml.assertion.saml20.jaxb20
Class AuthnStatement

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml20.jaxb20.StatementAbstractType
      extended by com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthnStatementType
          extended by com.sun.xml.wss.saml.assertion.saml20.jaxb20.AuthnStatement
All Implemented Interfaces:
AuthnStatement

public class AuthnStatement
extends AuthnStatementType
implements AuthnStatement

The AuthnStatement element supplies a statement by the issuer that its subject was authenticated by a particular means at a particular time. The AuthnStatement element is of type AuthnStatementType, which extends the SubjectStatementAbstractType with the additional element and attributes.


Field Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthnStatementType
authnContext, authnInstant, sessionIndex, sessionNotOnOrAfter, subjectLocality
 
Constructor Summary
protected AuthnStatement()
          Default constructor
  AuthnStatement(AuthnStatementType authStmtType)
           
  AuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext, String sessionIndex, GregorianCalendar sessionNotOnOrAfter)
          Constructor for authentication statement
 
Method Summary
static AuthnStatementType fromElement(Element element)
          This constructor builds an authentication statement element from an existing XML block.
 String getAuthenticatingAuthority()
          Gets the value of the AuthnContext's AuthenticatingAuthority property.
 String getAuthnContextClassRef()
          Gets the value of the AuthnContext's AuthnContextClassRef property.
 Date getAuthnInstantDate()
          Gets the value of the authnInstant property.
 String getSessionIndex()
          Gets the value of the sessionIndex property.
 Date getSessionNotOnOrAfterDate()
          Gets the value of the sessionNotOnOrAfter property.
 String getSubjectLocalityAddress()
          Gets the value of the SubjectLocality address property.
 String getSubjectLocalityDNSName()
          Gets the value of the SubjectLocality dnsName property.
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthnStatementType
getAuthnContext, getAuthnInstant, getSessionNotOnOrAfter, getSubjectLocality, setAuthnContext, setAuthnInstant, setSessionIndex, setSessionNotOnOrAfter, setSubjectLocality
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

AuthnStatement

protected AuthnStatement()
Default constructor


AuthnStatement

public AuthnStatement(GregorianCalendar authInstant,
                      SubjectLocality subjectLocality,
                      AuthnContext authnContext,
                      String sessionIndex,
                      GregorianCalendar sessionNotOnOrAfter)
Constructor for authentication statement

Parameters:
authMethod - (optional) A String specifies the type of authentication that took place.
authInstant - (optional) A GregorianCalendar specifies the time at which the authentication that took place.
subject - (required) A Subject object
subjectLocality - (optional) A SubjectLocality object.
authorityBinding - (optional) A List of AuthorityBinding objects.
Throws:
SAMLException - if there is an error in the sender.

AuthnStatement

public AuthnStatement(AuthnStatementType authStmtType)
Method Detail

fromElement

public static AuthnStatementType fromElement(Element element)
                                      throws SAMLException
This constructor builds an authentication statement element from an existing XML block.

Parameters:
element - representing a DOM tree element.
Throws:
SAMLException - if there is an error in the sender or in the element definition.

getAuthnInstantDate

public Date getAuthnInstantDate()
Description copied from interface: AuthnStatement
Gets the value of the authnInstant property.

Specified by:
getAuthnInstantDate in interface AuthnStatement
Returns:
object is Date

getSessionNotOnOrAfterDate

public Date getSessionNotOnOrAfterDate()
Description copied from interface: AuthnStatement
Gets the value of the sessionNotOnOrAfter property.

Specified by:
getSessionNotOnOrAfterDate in interface AuthnStatement
Returns:
object is Date

getSubjectLocalityAddress

public String getSubjectLocalityAddress()
Description copied from interface: AuthnStatement
Gets the value of the SubjectLocality address property.

Specified by:
getSubjectLocalityAddress in interface AuthnStatement
Returns:
object is String

getSubjectLocalityDNSName

public String getSubjectLocalityDNSName()
Description copied from interface: AuthnStatement
Gets the value of the SubjectLocality dnsName property.

Specified by:
getSubjectLocalityDNSName in interface AuthnStatement
Returns:
object is String

getAuthnContextClassRef

public String getAuthnContextClassRef()
Description copied from interface: AuthnStatement
Gets the value of the AuthnContext's AuthnContextClassRef property.

Specified by:
getAuthnContextClassRef in interface AuthnStatement
Returns:
object is String

getAuthenticatingAuthority

public String getAuthenticatingAuthority()
Description copied from interface: AuthnStatement
Gets the value of the AuthnContext's AuthenticatingAuthority property.

Specified by:
getAuthenticatingAuthority in interface AuthnStatement
Returns:
object is String

getSessionIndex

public String getSessionIndex()
Description copied from class: AuthnStatementType
Gets the value of the sessionIndex property.

Specified by:
getSessionIndex in interface AuthnStatement
Overrides:
getSessionIndex in class AuthnStatementType
Returns:
possible object is String


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.