Package org.forgerock.oauth.clients.oidc
Class OpenIDConnectUserInfo
java.lang.Object
org.forgerock.oauth.clients.oidc.OpenIDConnectUserInfo
- All Implemented Interfaces:
UserInfo
OpenID Connect user information related to a users current social session.
-
Constructor Summary
ConstructorDescriptionOpenIDConnectUserInfo
(JsonValue rawProfile, String subject) Creates an OpenIDConnectUserInfo instance.OpenIDConnectUserInfo
(JsonValue rawProfile, JwtClaimsSet jwtClaimsSet) Creates an OpenIDConnectUserInfo instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the claim set from the jwt id token that was returned by auth server.Gets the user raw profile data without any modifications that was returned by the auth server.The subject which identifies a user on a particular auth server.
-
Constructor Details
-
OpenIDConnectUserInfo
Creates an OpenIDConnectUserInfo instance.- Parameters:
rawProfile
- raw profile of a user.jwtClaimsSet
- claim set from the jwt id token.
-
OpenIDConnectUserInfo
Creates an OpenIDConnectUserInfo instance.- Parameters:
rawProfile
- raw profile of a user.subject
- identifies a user on a particular auth server.
-
-
Method Details
-
getSubject
The subject which identifies a user on a particular auth server.- Specified by:
getSubject
in interfaceUserInfo
- Returns:
- subject.
-
getRawProfile
Gets the user raw profile data without any modifications that was returned by the auth server.- Specified by:
getRawProfile
in interfaceUserInfo
- Returns:
- users information as a
JsonValue
.
-
getJwtClaimsSet
Gets the claim set from the jwt id token that was returned by auth server.- Returns:
- claim set from the jwt id token.
-