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 the UserProfileFilter to make the user's profile attributes available in the context.
  • Field Details

  • Method Details

    • getDistinguishedName

      public String getDistinguishedName()
      Get the user's distinguished name (dn) or null if none.
      Returns:
      the distinguished name (dn) or null if none.
    • getCommonName

      public String getCommonName()
      Get the user's common name (cn) or null if none.
      Returns:
      the common name (cn) or null if none.
    • getRawInfo

      public Map<String,Object> getRawInfo()
      Returns the unmodifiable Map of the user profile info, not null.
      Returns:
      the unmodifiable Map of the user profile info, not null.
    • getRealm

      public String getRealm()
      Get the user's realm or null if none.
      Returns:
      the realm or null if none.
    • getUsername

      public String getUsername()
      Get the user's username or null if none.
      Returns:
      the username, or null if none.
    • asJsonValue

      public JsonValue asJsonValue()
      Get the raw JSON representation as a JsonValue. 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.