Class UserInfoClaims

java.lang.Object
org.forgerock.oauth2.core.UserInfoClaims

@SupportedAll public class UserInfoClaims extends Object
Simple bean that contains the values of claims, and the scopes that provisioned them (if any).
Since:
13.0.0
  • Constructor Details

    • UserInfoClaims

      public UserInfoClaims(Map<String,Object> values, Map<String,List<String>> compositeScopes)
      Constructor for a new UserInfoClaims object.
      Parameters:
      values - Map of values of claims.
      compositeScopes - Map of composite scopes.
  • Method Details

    • getValues

      public Map<String,Object> getValues()
      Gets the values of the claims for the user information.
      Returns:
      A map of claim names to values, which may be Strings or Maps.
    • getCompositeScopes

      public Map<String,List<String>> getCompositeScopes()
      For claims that are provisioned by composite scopes, this will contain the mapping of scope name to a list of claim names.
      Returns:
      A map of scope names to lists of claim names.