Class AuthnStatement
- java.lang.Object
-
- com.sun.xml.wss.saml.internal.saml20.jaxb20.StatementAbstractType
-
- com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthnStatementType
-
- com.sun.xml.wss.saml.assertion.saml20.jaxb20.AuthnStatement
-
- All Implemented Interfaces:
AuthnStatement
public class AuthnStatement extends AuthnStatementType implements AuthnStatement
TheAuthnStatementelement supplies a statement by the issuer that its subject was authenticated by a particular means at a particular time. TheAuthnStatementelement is of typeAuthnStatementType, which extends theSubjectStatementAbstractTypewith the additional element and attributes.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthnStatementType
authnContext, authnInstant, sessionIndex, sessionNotOnOrAfter, subjectLocality
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthnStatement()Default constructorAuthnStatement(AuthnStatementType authStmtType)AuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext, String sessionIndex, GregorianCalendar sessionNotOnOrAfter)Constructor for authentication statement
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthnStatementTypefromElement(Element element)This constructor builds an authentication statement element from an existing XML block.StringgetAuthenticatingAuthority()Gets the value of the AuthnContext's AuthenticatingAuthority property.StringgetAuthnContextClassRef()Gets the value of the AuthnContext's AuthnContextClassRef property.DategetAuthnInstantDate()Gets the value of the authnInstant property.StringgetSessionIndex()Gets the value of the sessionIndex property.DategetSessionNotOnOrAfterDate()Gets the value of the sessionNotOnOrAfter property.StringgetSubjectLocalityAddress()Gets the value of the SubjectLocality address property.StringgetSubjectLocalityDNSName()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
-
-
-
-
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:
authInstant- A GregorianCalendar specifies the time at which the authentication that took place.subjectLocality- ASubjectLocalityobject.
-
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:AuthnStatementGets the value of the authnInstant property.- Specified by:
getAuthnInstantDatein interfaceAuthnStatement- Returns:
- object is
Date
-
getSessionNotOnOrAfterDate
public Date getSessionNotOnOrAfterDate()
Description copied from interface:AuthnStatementGets the value of the sessionNotOnOrAfter property.- Specified by:
getSessionNotOnOrAfterDatein interfaceAuthnStatement- Returns:
- object is
Date
-
getSubjectLocalityAddress
public String getSubjectLocalityAddress()
Description copied from interface:AuthnStatementGets the value of the SubjectLocality address property.- Specified by:
getSubjectLocalityAddressin interfaceAuthnStatement- Returns:
- object is
String
-
getSubjectLocalityDNSName
public String getSubjectLocalityDNSName()
Description copied from interface:AuthnStatementGets the value of the SubjectLocality dnsName property.- Specified by:
getSubjectLocalityDNSNamein interfaceAuthnStatement- Returns:
- object is
String
-
getAuthnContextClassRef
public String getAuthnContextClassRef()
Description copied from interface:AuthnStatementGets the value of the AuthnContext's AuthnContextClassRef property.- Specified by:
getAuthnContextClassRefin interfaceAuthnStatement- Returns:
- object is
String
-
getAuthenticatingAuthority
public String getAuthenticatingAuthority()
Description copied from interface:AuthnStatementGets the value of the AuthnContext's AuthenticatingAuthority property.- Specified by:
getAuthenticatingAuthorityin interfaceAuthnStatement- Returns:
- object is
String
-
getSessionIndex
public String getSessionIndex()
Description copied from class:AuthnStatementTypeGets the value of the sessionIndex property.- Specified by:
getSessionIndexin interfaceAuthnStatement- Overrides:
getSessionIndexin classAuthnStatementType- Returns:
- possible object is
String
-
-