public class AttributeStatementImpl extends Object implements AttributeStatement
AttributeStatement
.
The AttributeStatement
element describes a statement by
the SAML authority asserting that the assertion subject is associated with
the specified attributes. It is of type AttributeStatementType
.
<complexType name="AttributeStatementType"> <complexContent> <extension base="{urn:oasis:names:tc:SAML:2.0:assertion} StatementAbstractType"> <choice maxOccurs="unbounded"> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Attribute"/> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion} EncryptedAttribute"/> </choice> </extension> </complexContent> </complexType>
Constructor and Description |
---|
AttributeStatementImpl()
Class constructor.
|
AttributeStatementImpl(Element element)
Class constructor with
AttributeStatement in
Element format. |
AttributeStatementImpl(String xmlString)
Class constructor with
AttributeStatement in xml string
format. |
Modifier and Type | Method and Description |
---|---|
List<Attribute> |
getAttribute()
Returns
Attribute (s) of the statement. |
List<EncryptedAttribute> |
getEncryptedAttribute()
Returns
EncryptedAttribute (s) of the statement. |
boolean |
isMutable()
Returns the mutability of the object.
|
void |
makeImmutable()
Makes the object immutable.
|
void |
setAttribute(List<Attribute> value)
Sets
Attribute (s) of the statement. |
void |
setEncryptedAttribute(List value)
Sets
EncryptedAttribute (s) of the statement. |
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the element.
|
public AttributeStatementImpl()
public AttributeStatementImpl(Element element) throws SAML2Exception
AttributeStatement
in
Element
format.SAML2Exception
public AttributeStatementImpl(String xmlString) throws SAML2Exception
AttributeStatement
in xml string
format.SAML2Exception
public List<Attribute> getAttribute()
Attribute
(s) of the statement.getAttribute
in interface AttributeStatement
Attribute
(s) in the statement.setAttribute(List)
public void setAttribute(List<Attribute> value) throws SAML2Exception
Attribute
(s) of the statement.setAttribute
in interface AttributeStatement
value
- List of new Attribute
(s).SAML2Exception
- if the object is immutable.getAttribute()
public List<EncryptedAttribute> getEncryptedAttribute()
EncryptedAttribute
(s) of the statement.getEncryptedAttribute
in interface AttributeStatement
EncryptedAttribute
(s) in the statement.setEncryptedAttribute(List)
public void setEncryptedAttribute(List value) throws SAML2Exception
EncryptedAttribute
(s) of the statement.setEncryptedAttribute
in interface AttributeStatement
value
- List of new EncryptedAttribute
(s).SAML2Exception
- if the object is immutable.getEncryptedAttribute()
public void makeImmutable()
makeImmutable
in interface Statement
public boolean isMutable()
public String toXMLString() throws SAML2Exception
toXMLString
in interface Statement
SAML2Exception
- if the object does not conform to the schema.public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
toXMLString
in interface Statement
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.SAML2Exception
- if the object does not conform to the schema.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.