|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.opensaml.SAMLObject
|
+--org.opensaml.SAMLSubject
Represents a SAML Subject
| Field Summary | |
static java.lang.String |
ARTIFACT01
Type 01 Artifact Confirmation Method Identifier |
static java.lang.String |
CONF_BEARER
Assertion Bearer Confirmation Method Identifier |
static java.lang.String |
HOLDER_KEY
Holder of Key Confirmation Method Identifier |
protected org.w3c.dom.Element |
keyInfo
Handle ds:KeyInfo as XML, let the application sort it out |
static java.lang.String |
SENDER_VOUCHES
Sender Vouches Confirmation Method Identifier |
| Fields inherited from class org.opensaml.SAMLObject |
config, log, root |
| Constructor Summary | |
SAMLSubject(org.w3c.dom.Element e)
Reconstructs a subject from a DOM tree |
|
SAMLSubject(java.io.InputStream in)
Reconstructs a subject from a stream |
|
SAMLSubject(java.lang.String name,
java.lang.String nameQualifier,
java.lang.String format,
java.util.Collection confirmationMethods,
java.lang.String confirmationData,
org.w3c.dom.Element keyInfo)
Builds a subject out of its component parts |
|
| Method Summary | |
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)
Initializes a subject from a DOM tree. |
java.lang.String |
getConfirmationData()
Gets the optional confirmation data of the Subject |
java.util.Iterator |
getConfirmationMethods()
Gets the confirmation methods of the Subject |
java.lang.String |
getFormat()
Gets the format of the Subject name |
org.w3c.dom.Element |
getKeyInfo()
Get the ds:KeyInfo DOM that is included in the subject, if any |
java.lang.String |
getName()
Gets the name of the Subject |
java.lang.String |
getNameQualifier()
Gets the name qualifier of the Subject |
org.w3c.dom.Node |
toDOM()
Overridden method to return a DOM tree representing the subject |
org.w3c.dom.Node |
toDOM(org.w3c.dom.Document doc)
Overridden method to return a DOM tree representing the subject |
| Methods inherited from class org.opensaml.SAMLObject |
fromStream, plantRoot, toBase64, toStream, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected org.w3c.dom.Element keyInfo
public static final java.lang.String ARTIFACT01
public static final java.lang.String CONF_BEARER
public static final java.lang.String HOLDER_KEY
public static final java.lang.String SENDER_VOUCHES
| Constructor Detail |
public SAMLSubject(java.lang.String name,
java.lang.String nameQualifier,
java.lang.String format,
java.util.Collection confirmationMethods,
java.lang.String confirmationData,
org.w3c.dom.Element keyInfo)
throws SAMLException
name - Name of subjectnameQualifier - Federates or qualifies subject name
(optional)format - URI describing name semantics and format
(optional)confirmationMethods - Confirmation method(s) that bind the subject
to an enclosing assertion (optional)confirmationData - Arbitrary string-ified confirmation data
(optional)keyInfo -
SAMLException - Raised if a subject cannot be constructed
from the supplied information
public SAMLSubject(org.w3c.dom.Element e)
throws SAMLException
e - The root of a DOM tree
SAMLException - Thrown if the object cannot be constructed
public SAMLSubject(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
The constructor checks the subject's syntactic and semantic validity. An exception is thrown if any problems are detected. The exception will contain a message describing the problem, and may wrap another exception.
fromDOM in class SAMLObjecte - A DOM Subject element
SAMLException - Thrown if the subject cannot be constructedpublic java.lang.String getName()
public java.lang.String getNameQualifier()
public java.lang.String getFormat()
public java.util.Iterator getConfirmationMethods()
public java.lang.String getConfirmationData()
public org.w3c.dom.Element getKeyInfo()
public org.w3c.dom.Node toDOM()
toDOM in class SAMLObjectpublic org.w3c.dom.Node toDOM(org.w3c.dom.Document doc)
toDOM in class SAMLObjectdoc - A Document object to use in manufacturing the tree
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class SAMLObjectjava.lang.CloneNotSupportedExceptionObject.clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||