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 Summary
ConstructorsConstructorDescriptionCreate 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 Summary
Modifier and TypeMethodDescriptionvoid
Add the specified value to the value set.boolean
Check whether the specified object is equal to this credential attribute.getName()
Get the name.Get the value set.int
hashCode()
Get the hash code of this credential attribute.boolean
Check whether the specified value is contained in the value set.void
removeValue
(String value) Remove the specified value from the value set of this credential attribute.void
Set the value set.
-
Constructor Details
-
Attribute
Create a credential attribute with the specified name. The value set is empty.- Parameters:
name
- The name.
-
Attribute
Create a credential attribute with the specified name and a value set containing the specified value.- Parameters:
name
- The name.value
- The value.
-
Attribute
Create a credential attribute with the specified name and the specified value set.- Parameters:
name
- The name.values
- The value set.
-
-
Method Details
-
getName
Get the name.- Returns:
- The name.
-
getValues
Get the value set. If the returned value set is modified, call the methodsetValues(Set)
to persist the modifications.- Returns:
- The value set.
-
setValues
Set the value set.- Parameters:
values
- The value set.
-
addValue
Add 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.
-
hasValue
Check 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.
-
removeValue
Remove the specified value from the value set of this credential attribute.- Parameters:
value
- The value.
-
equals
Check 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. -
hashCode
public int hashCode()Get the hash code of this credential attribute.
-