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
FieldsFields 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) ornullif none.Get the user's distinguished name (dn) ornullif none.Returns the unmodifiableMapof the user profile info, notnull.getRealm()Get the user's realm ornullif none.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 Details
-
NAME
Context's name.- See Also:
-
-
Method Details
-
getDistinguishedName
Get the user's distinguished name (dn) ornullif none.- Returns:
- the distinguished name (dn) or
nullif none.
-
getCommonName
Get the user's common name (cn) ornullif none.- Returns:
- the common name (cn) or
nullif none.
-
getRawInfo
Returns the unmodifiableMapof the user profile info, notnull.- Returns:
- the unmodifiable
Mapof the user profile info, notnull.
-
getRealm
Get the user's realm ornullif none.- Returns:
- the realm or
nullif none.
-
getUsername
Get the user's username ornullif none.- Returns:
- the username, or
nullif 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.
-