|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.SAMLObject
org.opensaml.SAMLStatement
org.opensaml.SAMLSubjectStatement
org.opensaml.SAMLAuthenticationStatement
Represents a SAML Authentication Statement
Field Summary | |
static java.lang.String |
AuthenticationMethod_HardwareToken
The authentication was performed by means of an unspecified hardware token. |
static java.lang.String |
AuthenticationMethod_Kerberos
The authentication was performed by means of the Kerberos protocol [RFC 1510], an instantiation of the Needham-Schroeder symmetric key authentication mechanism [Needham78]. |
static java.lang.String |
AuthenticationMethod_Password
The authentication was performed by means of a password. |
static java.lang.String |
AuthenticationMethod_PGP_PublicKey
The authentication was performed by some (unspecified) mechanism on a key authenticated by means of a PGP web of trust [PGP]. |
static java.lang.String |
AuthenticationMethod_SPKI_PublicKey
The authentication was performed by some (unspecified) mechanism on a key authenticated by means of a SPKI PKI [SPKI]. |
static java.lang.String |
AuthenticationMethod_SRP
The authentication was performed by means of Secure Remote Password protocol as specified in [RFC 2945]. |
static java.lang.String |
AuthenticationMethod_SSL_TLS_Client
The authentication was performed using either the SSL or TLS protocol with certificate based client authentication. |
static java.lang.String |
AuthenticationMethod_Unspecified
The authentication was performed by an unspecified means. |
static java.lang.String |
AuthenticationMethod_X509_PublicKey
The authentication was performed by some (unspecified) mechanism on a key authenticated by means of an X.509 PKI [X.500][PKIX]. |
static java.lang.String |
AuthenticationMethod_XKMS_PublicKey
The authentication was performed by some (unspecified) mechanism on a key authenticated by means of a XKMS trust service [XKMS]. |
static java.lang.String |
AuthenticationMethod_XML_DSig
The authentication was performed by means of an XML digital signature [RFC 3075]. |
protected java.util.Date |
authInstant
|
protected java.lang.String |
authMethod
|
protected java.util.ArrayList |
bindings
|
protected java.lang.String |
subjectDNS
|
protected java.lang.String |
subjectIP
|
Fields inherited from class org.opensaml.SAMLSubjectStatement |
subject |
Fields inherited from class org.opensaml.SAMLStatement |
statementTypeMap |
Fields inherited from class org.opensaml.SAMLObject |
config, log, root |
Constructor Summary | |
SAMLAuthenticationStatement()
Default constructor |
|
SAMLAuthenticationStatement(org.w3c.dom.Element e)
Reconstructs a statement from a DOM tree |
|
SAMLAuthenticationStatement(java.io.InputStream in)
Reconstructs a statement from a stream |
|
SAMLAuthenticationStatement(SAMLSubject subject,
java.util.Date authInstant,
java.lang.String subjectIP,
java.lang.String subjectDNS,
java.util.Collection bindings)
Builds a statement out of its component parts |
|
SAMLAuthenticationStatement(SAMLSubject subject,
java.lang.String authMethod,
java.util.Date authInstant,
java.lang.String subjectIP,
java.lang.String subjectDNS,
java.util.Collection bindings)
Builds a statement out of its component parts |
Method Summary | |
void |
addBinding(SAMLAuthorityBinding binding)
Adds SAML authority binding information |
void |
checkValidity()
Evaluates the object's content to see if it is currently valid if serialized. |
java.lang.Object |
clone()
Copies a SAML object such that no dependencies exist between the original and the copy |
void |
fromDOM(org.w3c.dom.Element e)
Initialization of an object from a DOM element |
java.util.Date |
getAuthInstant()
Gets the datetime of authentication |
java.lang.String |
getAuthMethod()
Gets the authentication method |
java.util.Iterator |
getBindings()
Gets SAML authority binding information |
java.lang.String |
getSubjectDNS()
Gets the subject's DNS address |
java.lang.String |
getSubjectIP()
Gets the subject's IP address |
void |
removeBinding(int index)
Removes a binding by position (zero-based) |
void |
setAuthInstant(java.util.Date authInstant)
Sets the datetime of authentication |
void |
setAuthMethod(java.lang.String authMethod)
Sets the authentication method |
void |
setBindings(java.util.Collection bindings)
Sets SAML authority binding information |
void |
setSubjectDNS(java.lang.String subjectDNS)
Sets the subject's DNS address |
void |
setSubjectIP(java.lang.String subjectIP)
Sets the subject's IP address |
org.w3c.dom.Node |
toDOM(org.w3c.dom.Document doc,
boolean xmlns)
Transforms the object into a DOM tree using an existing document context |
Methods inherited from class org.opensaml.SAMLSubjectStatement |
getSubject, setSubject |
Methods inherited from class org.opensaml.SAMLStatement |
getInstance, getInstance, regFactory, unregFactory |
Methods inherited from class org.opensaml.SAMLObject |
fromStream, plantRoot, toBase64, toDOM, toDOM, toDOM, toStream, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String subjectIP
protected java.lang.String subjectDNS
protected java.lang.String authMethod
protected java.util.Date authInstant
protected java.util.ArrayList bindings
public static final java.lang.String AuthenticationMethod_Password
public static final java.lang.String AuthenticationMethod_Kerberos
public static final java.lang.String AuthenticationMethod_SRP
public static final java.lang.String AuthenticationMethod_HardwareToken
public static final java.lang.String AuthenticationMethod_SSL_TLS_Client
public static final java.lang.String AuthenticationMethod_X509_PublicKey
public static final java.lang.String AuthenticationMethod_PGP_PublicKey
public static final java.lang.String AuthenticationMethod_SPKI_PublicKey
public static final java.lang.String AuthenticationMethod_XKMS_PublicKey
public static final java.lang.String AuthenticationMethod_XML_DSig
public static final java.lang.String AuthenticationMethod_Unspecified
Constructor Detail |
public SAMLAuthenticationStatement()
public SAMLAuthenticationStatement(SAMLSubject subject, java.lang.String authMethod, java.util.Date authInstant, java.lang.String subjectIP, java.lang.String subjectDNS, java.util.Collection bindings) throws SAMLException
subject
- Subject of statementauthMethod
- URI of authentication methodauthInstant
- Datetime of authenticationsubjectIP
- IP address of subject in dotted decimal
notation (optional)subjectDNS
- DNS address of subject (optional)bindings
- Collection of SAMLAuthorityBinding objects to
reference SAML responders (optional)
SAMLException
- Raised if a statement cannot be constructed
from the supplied informationpublic SAMLAuthenticationStatement(SAMLSubject subject, java.util.Date authInstant, java.lang.String subjectIP, java.lang.String subjectDNS, java.util.Collection bindings) throws SAMLException
subject
- Subject of statementauthInstant
- Datetime of authenticationsubjectIP
- IP address of subject in dotted decimal
notation (optional)subjectDNS
- DNS address of subject (optional)bindings
- Collection of SAMLAuthorityBinding objects to
reference SAML responders (optional)
SAMLException
- Raised if a statement cannot be constructed
from the supplied informationpublic SAMLAuthenticationStatement(org.w3c.dom.Element e) throws SAMLException
e
- The root of a DOM tree
SAMLException
- Thrown if the object cannot be constructedpublic SAMLAuthenticationStatement(java.io.InputStream in) throws SAMLException
in
- A stream containing XML
SAMLException
- Raised if an exception occurs while constructing
the object.Method Detail |
public void fromDOM(org.w3c.dom.Element e) throws SAMLException
SAMLObject
fromDOM
in class SAMLSubjectStatement
SAMLException
SAMLObject.fromDOM(org.w3c.dom.Element)
public java.lang.String getSubjectIP()
public void setSubjectIP(java.lang.String subjectIP)
subjectIP
- The subject's IP addresspublic java.lang.String getSubjectDNS()
public void setSubjectDNS(java.lang.String subjectDNS)
subjectDNS
- The subject's DNS addresspublic java.lang.String getAuthMethod()
public void setAuthMethod(java.lang.String authMethod)
authMethod
- The authentication method URIpublic java.util.Date getAuthInstant()
public void setAuthInstant(java.util.Date authInstant)
authInstant
- The date and time of authenticationpublic java.util.Iterator getBindings()
public void setBindings(java.util.Collection bindings) throws SAMLException
bindings
- The bindings to include
SAMLException
- Raised if any of the bindings are invalidpublic void addBinding(SAMLAuthorityBinding binding) throws SAMLException
binding
- The binding to add
SAMLException
- Raised if the binding is invalidpublic void removeBinding(int index)
index
- The position of the binding to removepublic org.w3c.dom.Node toDOM(org.w3c.dom.Document doc, boolean xmlns) throws SAMLException
SAMLObject
toDOM
in class SAMLObject
doc
- A Document object to use in manufacturing the treexmlns
- Include namespace(s) on root element?
SAMLException
- Raised if the object is incompletely definedSAMLObject.toDOM(org.w3c.dom.Document,boolean)
public void checkValidity() throws SAMLException
SAMLObject
checkValidity
in class SAMLSubjectStatement
SAMLException
SAMLObject.checkValidity()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class SAMLSubjectStatement
java.lang.CloneNotSupportedException
Object.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |