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 theUserProfileFilter
to make the user's profile attributes available in the context.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
Context'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 JsonValue
asJsonValue()
Get the raw JSON representation as aJsonValue
.String
getCommonName()
Get the user's common name (cn) ornull
if none.String
getDistinguishedName()
Get the user's distinguished name (dn) ornull
if none.Map<String,Object>
getRawInfo()
Returns the unmodifiableMap
of the user profile info, notnull
.String
getRealm()
Get the user's realm ornull
if none.String
getUsername()
Get the user's username ornull
if 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) ornull
if none.- Returns:
- the distinguished name (dn) or
null
if none.
-
getCommonName
public String getCommonName()
Get the user's common name (cn) ornull
if none.- Returns:
- the common name (cn) or
null
if none.
-
getRawInfo
public Map<String,Object> getRawInfo()
Returns the unmodifiableMap
of the user profile info, notnull
.- Returns:
- the unmodifiable
Map
of the user profile info, notnull
.
-
getRealm
public String getRealm()
Get the user's realm ornull
if none.- Returns:
- the realm or
null
if none.
-
getUsername
public String getUsername()
Get the user's username ornull
if none.- Returns:
- the username, or
null
if none.
-
-