Package 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
The
AttributeStatement 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.SubjectStatement
_subjectFields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDafault constructorAttributeStatement(Subject subject, List attribute) Constructs an instance ofAttributeStatement.AttributeStatement(Element element) Constructs anAttributStatementelement from an existing XML block -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributecreateAttribute(Element attributeElement) protected SubjectcreateSubject(Element subjectElement) Gets attribute from Attribute statementintGets the type of statement.toString()Creates a String representation of the attribute statementtoString(boolean includeNS, boolean declareNS) Returns a String representation of the Attribute statement.Methods inherited from class com.sun.identity.saml.assertion.SubjectStatement
getSubject, setSubject
-
Constructor Details
-
AttributeStatement
protected AttributeStatement()Dafault constructor -
AttributeStatement
Constructs anAttributStatementelement 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
Constructs an instance ofAttributeStatement.- 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 Details
-
getAttribute
Gets attribute from Attribute statement- Returns:
- A list of Attributes contained in this statement
-
getStatementType
public int getStatementType()Gets the type of statement.- Specified by:
getStatementTypein classStatement- Returns:
- an Integer which is Statement.ATTRIBUTE_STATEMENT.
-
toString
Creates a String representation of the attribute statement -
toString
Returns a String representation of the Attribute statement.- Specified by:
toStringin classSubjectStatement- 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.
-
createSubject
- Throws:
SAMLException
-
createAttribute
- Throws:
SAMLException
-