Class ScriptedIdentity
java.lang.Object
org.forgerock.openam.scripting.api.identity.ScriptedIdentity
- Direct Known Subclasses:
ScriptedClient
A wrapper class to limit an authentication script's exposure to a AmIdentity object
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String attributeName, String attributeValue) Adds a new attribute value to the existing set for the named attribute.String[]getAttributeValues(String attributeName) Retrieves a particular attribute's valuevoidsetAttribute(String attributeName, String[] attributeValues) Sets the attribute's values.
-
Method Details
-
getAttributeValues
Retrieves a particular attribute's value- Parameters:
attributeName- the name of the attribute to be retrieved- Returns:
- the value of the attribute
-
setAttribute
Sets the attribute's values. If the attribute already exists all existing values will be overridden. If it doesn't exist, it will be created.- Parameters:
attributeName- the name of the attributeattributeValues- the values of the attribute
-
addAttribute
Adds a new attribute value to the existing set for the named attribute. If the identity does not have any existing values, this sets the attribute to have the single value provided.- Parameters:
attributeName- the name of the attributeattributeValue- the value of the attribute to add
-