Class OpenIDConnectUserInfo

java.lang.Object
org.forgerock.oauth.clients.oidc.OpenIDConnectUserInfo
All Implemented Interfaces:
UserInfo

public class OpenIDConnectUserInfo extends Object implements UserInfo
OpenID Connect user information related to a users current social session.
  • Constructor Details

    • OpenIDConnectUserInfo

      public OpenIDConnectUserInfo(JsonValue rawProfile, JwtClaimsSet jwtClaimsSet)
      Creates an OpenIDConnectUserInfo instance.
      Parameters:
      rawProfile - raw profile of a user.
      jwtClaimsSet - claim set from the jwt id token.
    • OpenIDConnectUserInfo

      public OpenIDConnectUserInfo(JsonValue rawProfile, String subject)
      Creates an OpenIDConnectUserInfo instance.
      Parameters:
      rawProfile - raw profile of a user.
      subject - identifies a user on a particular auth server.
  • Method Details

    • getSubject

      public String getSubject()
      The subject which identifies a user on a particular auth server.
      Specified by:
      getSubject in interface UserInfo
      Returns:
      subject.
    • getRawProfile

      public JsonValue getRawProfile()
      Gets the user raw profile data without any modifications that was returned by the auth server.
      Specified by:
      getRawProfile in interface UserInfo
      Returns:
      users information as a JsonValue.
    • getJwtClaimsSet

      public JwtClaimsSet getJwtClaimsSet()
      Gets the claim set from the jwt id token that was returned by auth server.
      Returns:
      claim set from the jwt id token.