Package org.forgerock.openig.openam
Class UserProfileContext
- java.lang.Object
-
- org.forgerock.services.context.AbstractContext
-
- org.forgerock.openig.openam.UserProfileContext
-
- All Implemented Interfaces:
Context
public class UserProfileContext extends AbstractContext
Used by theUserProfileFilterto make the user's profile attributes available in the context.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEContext's name.-
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValueasJsonValue()Get the raw JSON representation as aJsonValue.StringgetCommonName()Get the user's common name (cn) ornullif none.StringgetDistinguishedName()Get the user's distinguished name (dn) ornullif none.Map<String,Object>getRawInfo()Returns the unmodifiableMapof the user profile info, notnull.StringgetRealm()Get the user's realm ornullif none.StringgetUsername()Get the user's username ornullif none.-
Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Context's name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDistinguishedName
public String getDistinguishedName()
Get the user's distinguished name (dn) ornullif none.- Returns:
- the distinguished name (dn) or
nullif none.
-
getCommonName
public String getCommonName()
Get the user's common name (cn) ornullif none.- Returns:
- the common name (cn) or
nullif none.
-
getRawInfo
public Map<String,Object> getRawInfo()
Returns the unmodifiableMapof the user profile info, notnull.- Returns:
- the unmodifiable
Mapof the user profile info, notnull.
-
getRealm
public String getRealm()
Get the user's realm ornullif none.- Returns:
- the realm or
nullif none.
-
getUsername
public String getUsername()
Get the user's username ornullif none.- Returns:
- the username, or
nullif none.
-
-