Class AttributeIdentifier

java.lang.Object
com.tivoli.am.rba.attributes.AttributeIdentifier

public class AttributeIdentifier extends Object
An AttributeIdentifier is an object that contains the uri, datatype and issuer (optional) that defines an attribute.
Since:
8.0.0.3
  • Field Details

  • Constructor Details

    • AttributeIdentifier

      @Deprecated public AttributeIdentifier(String name, String uri, String datatype, String issuer)
      Deprecated.
      Parameters:
      name - shortname of attribute
      uri - is the valid
      invalid reference
      URI
      string value for this attribute. This can also be considered as the 'id' of the attribute.
      datatype - the type of data
      issuer - the issuer for the attribute
      Since:
      8.0.0.3
      See Also:
    • AttributeIdentifier

      public AttributeIdentifier(String uri, String datatype, String issuer)
      Parameters:
      uri - considered as the 'id' of the attribute. It must be a valid
      invalid reference
      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 attribute
      Since:
      8.0.0.4
      See Also:
  • Method Details

    • getName

      @Deprecated public String getName()
      Deprecated.
    • setName

      @Deprecated public void setName(String attrName)
      Deprecated.
    • getDatatype

      public String getDatatype()
      Returns:
      The attribute's datatype
      See Also:
    • setDatatype

      public void setDatatype(String datatype)
      Parameters:
      datatype - The datatype for the attribute
      See Also:
    • getIssuer

      public String getIssuer()
      Returns:
      The attribute's issuer
    • getURI

      public String getURI()
      Returns:
      The URI of the attribute
    • getSubjectCategory

      public 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:
    • setIssuer

      public void setIssuer(String issuer)
      Parameters:
      issuer - is the issuer value for this attribute
    • setURI

      public void setURI(String uri)
      Parameters:
      uri - is the valid
      invalid reference
      URI
      string value for this attribute
    • setSubjectCategory

      public void setSubjectCategory(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:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object