public class AttributeIdentifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
static java.lang.String |
sourceCodeID |
Constructor and 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.
|
Modifier and Type | Method and 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() |
public static final java.lang.String sourceCodeID
public static final java.lang.String copyright
@Deprecated public AttributeIdentifier(java.lang.String name, java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
name
- shortname of attributeuri
- is the valid URI
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 attributeAttribute.DataType
public AttributeIdentifier(java.lang.String uri, java.lang.String datatype, java.lang.String issuer)
uri
- considered as the 'id' of the attribute. It must be a valid URI
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 from Attribute.DataType
should be used to specify this value.issuer
- the issuer for the attributeAttribute.DataType
@Deprecated public java.lang.String getName()
@Deprecated public void setName(java.lang.String attrName)
public java.lang.String getDatatype()
Attribute.DataType
public void setDatatype(java.lang.String datatype)
datatype
- The datatype for the attributeAttribute.DataType
public java.lang.String getIssuer()
public java.lang.String getURI()
public java.lang.String getSubjectCategory()
An example of a returned value would be:
urn:oasis:names:tc:xacml:1.0:subject-category:access-subject
Attribute.Category
public void setIssuer(java.lang.String issuer)
issuer
- is the issuer value for this attributepublic void setURI(java.lang.String uri)
uri
- is the valid URI
string value for this attributepublic void setSubjectCategory(java.lang.String subjectCategory)
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
public void setSubjectCategory(Attribute.Category category)
Constants from the Attribute.Category
should be used to set this value
Attribute.Category
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object