Package org.forgerock.openig.openam
Class UserProfileContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.openam.UserProfileContext
- All Implemented Interfaces:
Context
Used by the
UserProfileFilter
to make the user's profile attributes available in the context.-
Field Summary
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
Method Summary
Modifier and TypeMethodDescriptionGet the raw JSON representation as aJsonValue
.Get the user's common name (cn) ornull
if none.Get the user's distinguished name (dn) ornull
if none.Returns the unmodifiableMap
of the user profile info, notnull
.getRealm()
Get the user's realm ornull
if none.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 Details
-
NAME
Context's name.- See Also:
-
-
Method Details
-
getDistinguishedName
Get the user's distinguished name (dn) ornull
if none.- Returns:
- the distinguished name (dn) or
null
if none.
-
getCommonName
Get the user's common name (cn) ornull
if none.- Returns:
- the common name (cn) or
null
if none.
-
getRawInfo
Returns the unmodifiableMap
of the user profile info, notnull
.- Returns:
- the unmodifiable
Map
of the user profile info, notnull
.
-
getRealm
Get the user's realm ornull
if none.- Returns:
- the realm or
null
if none.
-
getUsername
Get the user's username ornull
if none.- Returns:
- the username, or
null
if none.
-
asJsonValue
Get the raw JSON representation as aJsonValue
. This is not null and will contain the Access Management user profile object structure, though values may be null.- Returns:
- the JSON representation, not
null
.
-