Class Attribute
java.lang.Object
com.ibm.security.access.extension.authn.credential.Attribute
- All Implemented Interfaces:
- Serializable
This class represents a credential attribute. Credential attribute consists
 of a name and a value set.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a credential attribute with the specified name.Create a credential attribute with the specified name and a value set containing the specified value.Create a credential attribute with the specified name and the specified value set.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd the specified value to the value set.booleanCheck whether the specified object is equal to this credential attribute.getName()Get the name.Get the value set.inthashCode()Get the hash code of this credential attribute.booleanCheck whether the specified value is contained in the value set.voidremoveValue(String value) Remove the specified value from the value set of this credential attribute.voidSet the value set.
- 
Constructor Details- 
AttributeCreate a credential attribute with the specified name. The value set is empty.- Parameters:
- name- The name.
 
- 
AttributeCreate a credential attribute with the specified name and a value set containing the specified value.- Parameters:
- name- The name.
- value- The value.
 
- 
AttributeCreate a credential attribute with the specified name and the specified value set.- Parameters:
- name- The name.
- values- The value set.
 
 
- 
- 
Method Details- 
getNameGet the name.- Returns:
- The name.
 
- 
getValuesGet the value set. If the returned value set is modified, call the methodsetValues(Set)to persist the modifications.- Returns:
- The value set.
 
- 
setValuesSet the value set.- Parameters:
- values- The value set.
 
- 
addValueAdd the specified value to the value set. If the value set already contains the specified value, the specified value is not added.- Parameters:
- value- The value.
 
- 
hasValueCheck whether the specified value is contained in the value set.- Parameters:
- value- The value.
- Returns:
- Whether the specified value is contained in the value set.
 
- 
removeValueRemove the specified value from the value set of this credential attribute.- Parameters:
- value- The value.
 
- 
equalsCheck whether the specified object is equal to this credential attribute. An object is equal to this credential attribute if and only if (1) the object is an instance ofAttribute, and (2) the name of the object is equal to the name of this credential attribute.
- 
hashCodepublic int hashCode()Get the hash code of this credential attribute.
 
-