com.sun.identity.saml.assertion
Class AttributeStatement

java.lang.Object
  extended bycom.sun.identity.saml.assertion.Statement
      extended bycom.sun.identity.saml.assertion.SubjectStatement
          extended bycom.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.


Field Summary
 
Fields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
 
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 com.sun.identity.saml.assertion.SubjectStatement
getSubject, setSubject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 converted
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
A string representation of the <saml:AttributeStatement> element.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.