Package com.sun.identity.xacml.context
Interface Attribute
-
- All Known Implementing Classes:
AttributeImpl
public interface AttributeTheAttributeelement specifies information about the action/subject/resource requested in theRequestcontext by listing a sequence ofAttributeelements 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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URIgetAttributeId()Returns the AttributeId of theAttributewhich the attribute identifier.ListgetAttributeValues()Returns one to manyAttributeValueelements for this object each attribite value MAY have empty contents, occur once or occur multiple times.URIgetDataType()Returns the datatype of the contents of theAttributeValueelements.StringgetIssuer()Returns the issuer of theAttribute.booleanisMutable()Returnstrueif the object is mutable.voidmakeImmutable()Makes the object immutablevoidsetAttributeId(URI attributeID)Sets the attributeId of theAttribute.voidsetAttributeStringValues(List attrValues)Sets the attribute values for this objectvoidsetAttributeValues(List attrValues)Sets theAttributeValueelements of this objectvoidsetDataType(URI dataType)Sets the data type of the contents of theAttributeValueelements.voidsetIssuer(String issuer)Sets the issuer of theAttribute.StringtoXMLString()Returns a string representation of this object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns aStringrepresentation of this object
-
-
-
Method Detail
-
getAttributeId
URI getAttributeId()
Returns the AttributeId of theAttributewhich the attribute identifier.- Returns:
- the
URIrepresenting the data type.
-
setAttributeId
void setAttributeId(URI attributeID) throws XACMLException
Sets the attributeId of theAttribute.- Parameters:
attributeID-URIrepresenting the attribite id.- Throws:
XACMLException- if the object is immutable
-
getIssuer
String getIssuer()
Returns the issuer of theAttribute.- Returns:
Stringrepresenting the issuer. It MAY be an x500Name that binds to a public key or some other identification exchanged out-of-band by participating entities.
-
setIssuer
void setIssuer(String issuer) throws XACMLException
Sets the issuer of theAttribute.- Parameters:
issuer-Stringrepresenting 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 emptyString.- Throws:
XACMLException- if the object is immutable
-
getDataType
URI getDataType()
Returns the datatype of the contents of theAttributeValueelements. 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 theelement. - Returns:
- the
URIrepresenting the data type.
-
setDataType
void setDataType(URI dataType) throws XACMLException
Sets the data type of the contents of theAttributeValueelements.- Parameters:
dataType-URIrepresenting the data type.- Throws:
XACMLException- if the object is immutable
-
getAttributeValues
List getAttributeValues()
Returns one to manyAttributeValueelements for this object each attribite value MAY have empty contents, occur once or occur multiple times.- Returns:
- the List
AttributeValueelements of this object
-
setAttributeValues
void setAttributeValues(List attrValues) throws XACMLException
Sets theAttributeValueelements of this object- Parameters:
attrValues- List containingAttributeValueelements of this object.- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
setAttributeStringValues
void setAttributeStringValues(List attrValues) throws XACMLException
Sets the attribute values for this object- Parameters:
attrValues-ListcontainingStringvalues of this object.- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
toXMLString
String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns aStringrepresentation of this object- Parameters:
includeNSPrefix- 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 this object
- Throws:
XACMLException- if conversion fails for any reason
-
toXMLString
String toXMLString() throws XACMLException
Returns a string representation of this object.- Returns:
- a string representation of this object.
- Throws:
XACMLException- if conversion fails for any reason.
-
makeImmutable
void makeImmutable()
Makes the object immutable
-
isMutable
boolean isMutable()
Returnstrueif the object is mutable.- Returns:
trueif the object is mutable.
-
-