public interface Attribute
Attribute
element specifies information about the
action/subject/resource requested in the Request
context by
listing a sequence of Attribute
elements associated with
the action.
<xs:element name="Attribute" type="xacml-context:AttributeType"/> <xs:complexType name="AttributeType"> <xs:sequence> <xs:element ref="xacml-context:AttributeValue" maxOccurs="unbounded"/> <xs:sequence> <xs:attribute name="AttributeId" type="xs:anyURI" use="required"/> <xs:attribute name="DataType" type="xs:anyURI" use="required"/> <xs:attribute name="Issuer" type="xs:string" use="optional"/> <xs:complexType>
Modifier and Type | Method and Description |
---|---|
URI |
getAttributeId()
Returns the AttributeId of the
Attribute
which the attribute identifier. |
List |
getAttributeValues()
Returns one to many
AttributeValue elements for this object
each attribite value MAY have empty contents, occur once or occur
multiple times. |
URI |
getDataType()
Returns the datatype of the contents of the
AttributeValue
elements. |
String |
getIssuer()
Returns the issuer of the
Attribute . |
boolean |
isMutable()
Returns
true if the object is mutable. |
void |
makeImmutable()
Makes the object immutable
|
void |
setAttributeId(URI attributeID)
Sets the attributeId of the
Attribute . |
void |
setAttributeStringValues(List attrValues)
Sets the attribute values for this object
|
void |
setAttributeValues(List attrValues)
Sets the
AttributeValue elements of this object |
void |
setDataType(URI dataType)
Sets the data type of the contents of the
AttributeValue
elements. |
void |
setIssuer(String issuer)
Sets the issuer of the
Attribute . |
String |
toXMLString()
Returns a string representation of this object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a
String representation of this object |
URI getAttributeId()
Attribute
which the attribute identifier.URI
representing the data type.void setAttributeId(URI attributeID) throws XACMLException
Attribute
.attributeID
- URI
representing the attribite id.XACMLException
- if the object is immutableString getIssuer()
Attribute
.String
representing the issuer. It MAY be an
x500Name that binds to a public key or some other identification
exchanged out-of-band by participating entities.void setIssuer(String issuer) throws XACMLException
Attribute
.issuer
- String
representing the issuer.
It MAY be an x500Name that binds to a public key or some other
identification exchanged out-of-band by participating entities.
This is optional so return value could be null or an empty
String
.XACMLException
- if the object is immutableURI getDataType()
AttributeValue
elements. This will be either a primitive datatype defined by XACML 2.0
specification or a type ( primitive or structured) defined in a
namespace declared in the <xacml-context> element.URI
representing the data type.void setDataType(URI dataType) throws XACMLException
AttributeValue
elements.dataType
- URI
representing the data type.XACMLException
- if the object is immutableList getAttributeValues()
AttributeValue
elements for this object
each attribite value MAY have empty contents, occur once or occur
multiple times.AttributeValue
elements of this objectvoid setAttributeValues(List attrValues) throws XACMLException
AttributeValue
elements of this objectattrValues
- List containing AttributeValue
elements
of this object.XACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.void setAttributeStringValues(List attrValues) throws XACMLException
attrValues
- List
containing String
values of this object.XACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
String
representation of this objectincludeNSPrefix
- 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.XACMLException
- if conversion fails for any reasonString toXMLString() throws XACMLException
XACMLException
- if conversion fails for any reason.void makeImmutable()
boolean isMutable()
true
if the object is mutable.true
if the object is mutable.Copyright © 2010-2018, ForgeRock All Rights Reserved.