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 SummaryFields Modifier and Type Field Description static StringNAMEContext's name.- 
Fields inherited from class org.forgerock.services.context.AbstractContextdata
 
- 
 - 
Method SummaryAll 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.AbstractContextas, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static final String NAME Context's name.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDistinguishedNamepublic String getDistinguishedName() Get the user's distinguished name (dn) ornullif none.- Returns:
- the distinguished name (dn) or nullif none.
 
 - 
getCommonNamepublic String getCommonName() Get the user's common name (cn) ornullif none.- Returns:
- the common name (cn) or nullif none.
 
 - 
getRawInfopublic Map<String,Object> getRawInfo() Returns the unmodifiableMapof the user profile info, notnull.- Returns:
- the unmodifiable Mapof the user profile info, notnull.
 
 - 
getRealmpublic String getRealm() Get the user's realm ornullif none.- Returns:
- the realm or nullif none.
 
 - 
getUsernamepublic String getUsername() Get the user's username ornullif none.- Returns:
- the username, or nullif none.
 
 
- 
 
-