com.sun.identity.saml.assertion
Class AttributeStatement
java.lang.Object
com.sun.identity.saml.assertion.Statement
com.sun.identity.saml.assertion.SubjectStatement
com.sun.identity.saml.assertion.AttributeStatement
- public class AttributeStatement
- extends SubjectStatement
The element supplies a statement by the issuer that the
specified subject is associated with the specified attributes.
Constructor Summary |
AttributeStatement(org.w3c.dom.Element element)
Constructs an AttributStatement element from an existing
XML block |
AttributeStatement(Subject subject,
java.util.List attribute)
Constructs an instance of AttributeStatement . |
Method Summary |
java.util.List |
getAttribute()
Get attribute from Attribute statement |
int |
getStatementType()
Get the type of statement. |
java.lang.String |
toString()
Create a String representation of the attribute statement |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the Attribute statement. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeStatement
public AttributeStatement(org.w3c.dom.Element element)
throws SAMLException
- Constructs an
AttributStatement
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.
AttributeStatement
public AttributeStatement(Subject subject,
java.util.List attribute)
throws SAMLException
- Constructs an instance of
AttributeStatement
.
- Parameters:
subject
- (required) A Subject object.attribute
- (one or more) A List of Attribute objects.
- Throws:
SAMLException
- if there is an error in the sender.
getAttribute
public java.util.List getAttribute()
- Get attribute from Attribute statement
- Returns:
- A list of Attributes contained in this statement
getStatementType
public int getStatementType()
- Get the type of statement.
- Specified by:
getStatementType
in class Statement
- Returns:
- an Integer which is Statement.ATTRIBUTE_STATEMENT.
toString
public java.lang.String toString()
- Create a String representation of the attribute statement
- Returns:
- A string representation of the element
toString
public java.lang.String toString(boolean includeNS,
boolean declareNS)
- Returns a String representation of the Attribute statement.
- Specified by:
toString
in class SubjectStatement
- Parameters:
includeNS
- Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.
- Returns:
- A string representation of the
<saml:AttributeStatement>
element.
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.