Class OAuth2UserInfo
java.lang.Object
org.forgerock.oauth.clients.oauth2.OAuth2UserInfo
- All Implemented Interfaces:
UserInfo
Information about the current user.
-
Constructor Summary
ModifierConstructorDescriptionprotected
OAuth2UserInfo
(String authenticationIdKey, JsonValue rawProfile) Creates an OAuth2UserInfo object which wraps the raw profile of a user and provides the Subject of a particular user. -
Method Summary
Modifier and TypeMethodDescriptionGets 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
-
OAuth2UserInfo
Creates an OAuth2UserInfo object which wraps the raw profile of a user and provides the Subject of a particular user.- Parameters:
authenticationIdKey
- key used to identify which attribute an auth server identifies a user by.rawProfile
- users profile that was retrieved from the resource server.
-
-
Method Details
-
getSubject
Description copied from interface:UserInfo
The subject which identifies a user on a particular auth server.- Specified by:
getSubject
in interfaceUserInfo
- Returns:
- subject.
-
getRawProfile
Description copied from interface:UserInfo
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
.
-