Package com.tivoli.am.rba.attributes
Class AttributeIdentifier
- java.lang.Object
-
- com.tivoli.am.rba.attributes.AttributeIdentifier
-
public class AttributeIdentifier extends java.lang.Object
An AttributeIdentifier is an object that contains the uri, datatype and issuer (optional) that defines an attribute.- Since:
- 8.0.0.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
copyright
static java.lang.String
sourceCodeID
-
Constructor Summary
Constructors Constructor Description AttributeIdentifier(java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
AttributeIdentifier(java.lang.String name, java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDatatype()
java.lang.String
getIssuer()
java.lang.String
getName()
Deprecated.java.lang.String
getSubjectCategory()
The categories are in the form of XACML 2.0 subject identifier strings.java.lang.String
getURI()
int
hashCode()
void
setDatatype(java.lang.String datatype)
void
setIssuer(java.lang.String issuer)
void
setName(java.lang.String attrName)
Deprecated.void
setSubjectCategory(Attribute.Category category)
This is used to set the subject category of the attribute.void
setSubjectCategory(java.lang.String subjectCategory)
This is used to set the subject category of the attribute.void
setURI(java.lang.String uri)
java.lang.String
toString()
-
-
-
Field Detail
-
sourceCodeID
public static final java.lang.String sourceCodeID
- See Also:
- Constant Field Values
-
copyright
public static final java.lang.String copyright
-
-
Constructor Detail
-
AttributeIdentifier
@Deprecated public AttributeIdentifier(java.lang.String name, java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
Deprecated.- Parameters:
name
- shortname of attributeuri
- is the validURI
string value for this attribute. This can also be considered as the 'id' of the attribute.datatype
- the type of dataissuer
- the issuer for the attribute- Since:
- 8.0.0.3
- See Also:
Attribute.DataType
-
AttributeIdentifier
public AttributeIdentifier(java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
- Parameters:
uri
- considered as the 'id' of the attribute. It must be a validURI
string value for this attribute. This can also be considered as the 'id' of the attribute.datatype
- is the string representation, based on the w3.org XML Schema data type of the attribute. Constants fromAttribute.DataType
should be used to specify this value.issuer
- the issuer for the attribute- Since:
- 8.0.0.4
- See Also:
Attribute.DataType
-
-
Method Detail
-
getName
@Deprecated public java.lang.String getName()
Deprecated.
-
setName
@Deprecated public void setName(java.lang.String attrName)
Deprecated.
-
getDatatype
public java.lang.String getDatatype()
- Returns:
- The attribute's datatype
- See Also:
Attribute.DataType
-
setDatatype
public void setDatatype(java.lang.String datatype)
- Parameters:
datatype
- The datatype for the attribute- See Also:
Attribute.DataType
-
getIssuer
public java.lang.String getIssuer()
- Returns:
- The attribute's issuer
-
getURI
public java.lang.String getURI()
- Returns:
- The URI of the attribute
-
getSubjectCategory
public java.lang.String getSubjectCategory()
The categories are in the form of XACML 2.0 subject identifier strings.An example of a returned value would be:
urn:oasis:names:tc:xacml:1.0:subject-category:access-subject
- Returns:
- The subjectCategory of the attribute
- See Also:
Attribute.Category
-
setIssuer
public void setIssuer(java.lang.String issuer)
- Parameters:
issuer
- is the issuer value for this attribute
-
setURI
public void setURI(java.lang.String uri)
- Parameters:
uri
- is the validURI
string value for this attribute
-
setSubjectCategory
public void setSubjectCategory(java.lang.String subjectCategory)
This is used to set the subject category of the attribute.The categories are in the form of XACML 2.0 subject identifier strings.
An example of a valid input value would be:
urn:oasis:names:tc:xacml:1.0:subject-category:access-subject
- Since:
- 8.0.0.3
-
setSubjectCategory
public void setSubjectCategory(Attribute.Category category)
This is used to set the subject category of the attribute.Constants from the
Attribute.Category
should be used to set this value- Since:
- 8.0.0.3
- See Also:
Attribute.Category
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-