|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.SAMLObject
org.opensaml.SAMLAttributeDesignator
public class SAMLAttributeDesignator
SAML Attribute Designator implementation
Field Summary | |
---|---|
protected String |
name
Name of attribute |
protected String |
namespace
Namespace/qualifier of attribute |
Fields inherited from class org.opensaml.SAMLObject |
---|
config, dirty, log, parentObject, root |
Constructor Summary | |
---|---|
SAMLAttributeDesignator()
Default constructor |
|
SAMLAttributeDesignator(Element e)
Reconstructs an AttributeDesignator from a DOM tree |
|
SAMLAttributeDesignator(InputStream in)
Reconstructs an AttributeDesignator from a stream |
|
SAMLAttributeDesignator(String name,
String namespace)
Builds an AttributeDesignator out of its component parts |
Method Summary | |
---|---|
protected Element |
buildRoot(Document doc,
boolean xmlns)
Delegates the process of building the root element of an object and inserting appropriate namespaces. |
void |
checkValidity()
Evaluates the object's content to see if it is currently valid if serialized. |
Object |
clone()
Copies a SAML object such that no dependencies exist between the original and the copy. |
void |
fromDOM(Element e)
Initialization of AttributeDesignator from a DOM element. |
String |
getName()
Gets the AttributeName attribute of the SAML AttributeDesignator |
String |
getNamespace()
Gets the AttributeNamespace attribute of the SAML AttributeDesignator |
void |
setName(String name)
Sets the AttributeName attribute of the SAML AttributeDesignator |
void |
setNamespace(String namespace)
Sets the AttributeNamespace attribute of the SAML AttributeDesignator |
Node |
toDOM(Document doc,
boolean xmlns)
Transforms the object into a DOM tree using an existing document context |
Methods inherited from class org.opensaml.SAMLObject |
---|
fromStream, fromStream, getParent, plantRoot, setDirty, setParent, 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 String name
protected String namespace
Constructor Detail |
---|
public SAMLAttributeDesignator()
public SAMLAttributeDesignator(String name, String namespace) throws SAMLException
name
- Name of attributenamespace
- Namespace/qualifier of attribute
SAMLException
- Thrown if attribute cannot be built from the
supplied informationpublic SAMLAttributeDesignator(Element e) throws SAMLException
e
- The root of a DOM tree
SAMLException
- Thrown if the object cannot be constructedpublic SAMLAttributeDesignator(InputStream in) throws SAMLException
in
- A stream containing XML
SAMLException
- Raised if an exception occurs while constructing
the object.Method Detail |
---|
public void fromDOM(Element e) throws SAMLException
fromDOM
in class SAMLObject
e
- Root element of a DOM tree
SAMLException
- Raised if an exception occurs while constructing the object.public String getName()
public void setName(String name)
name
- The name valuepublic String getNamespace()
public void setNamespace(String namespace)
namespace
- The name valueprotected Element buildRoot(Document doc, boolean xmlns)
SAMLObject
buildRoot
in class SAMLObject
doc
- The document context to usexmlns
- Include namespace(s) on root element?
SAMLObject.buildRoot(org.w3c.dom.Document,boolean)
public Node toDOM(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 SAMLObject
SAMLException
- Raised if the serialized object would be invalid SAML,
excluding any embedded objectsSAMLObject.checkValidity()
public Object clone() throws CloneNotSupportedException
clone
in class SAMLObject
CloneNotSupportedException
Object.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |