Class ScriptedIdentity
- java.lang.Object
-
- org.forgerock.openam.scripting.api.identity.ScriptedIdentity
-
@Supported public class ScriptedIdentity extends Object
A wrapper class to limit an authentication script's exposure to a AmIdentity object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(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 valuevoid
setAttribute(String attributeName, String[] attributeValues)
Sets the attribute's values.
-
-
-
Method Detail
-
getAttributeValues
@Supported public String[] getAttributeValues(String attributeName)
Retrieves a particular attribute's value- Parameters:
attributeName
- The name of the attribute to be retrieved- Returns:
- The value of the attribute
-
setAttribute
@Supported public void setAttribute(String attributeName, String[] attributeValues)
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
@Supported public void addAttribute(String attributeName, String attributeValue)
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
-
-