Class OAuth2UserInfo
- java.lang.Object
-
- org.forgerock.oauth.clients.oauth2.OAuth2UserInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValue
getRawProfile()
Gets the user raw profile data without any modifications that was returned by the auth server.String
getSubject()
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:UserInfo
The subject which identifies a user on a particular auth server.- Specified by:
getSubject
in interfaceUserInfo
- Returns:
- subject.
-
getRawProfile
public JsonValue 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
.
-
-