Class OAuth2UserInfo
- java.lang.Object
-
- org.forgerock.oauth.clients.oauth2.OAuth2UserInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOAuth2UserInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValuegetRawProfile()Gets the user raw profile data without any modifications that was returned by the auth server.StringgetSubject()The subject which identifies a user on a particular auth server.
-
-
-
Constructor Detail
-
OAuth2UserInfo
protected 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.- 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 Detail
-
getSubject
public String getSubject()
Description copied from interface:UserInfoThe subject which identifies a user on a particular auth server.- Specified by:
getSubjectin interfaceUserInfo- Returns:
- subject.
-
getRawProfile
public JsonValue getRawProfile()
Description copied from interface:UserInfoGets the user raw profile data without any modifications that was returned by the auth server.- Specified by:
getRawProfilein interfaceUserInfo- Returns:
- users information as a
JsonValue.
-
-