Package org.forgerock.oauth2.core
Class ResourceOwner
- java.lang.Object
-
- org.forgerock.oauth2.core.ResourceOwner
-
public class ResourceOwner extends Object
Models a OAuth2 resource owner.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAuthTime()Gets the time at which the user last performed an active auth, in seconds.StringgetId()Gets the identifier of the resource owner.AMIdentitygetIdentity()Gets the resource owner's identity.StringgetName(OAuth2ProviderSettings settings)Gets the name of the user, if possible.
-
-
-
Method Detail
-
getId
public String getId()
Gets the identifier of the resource owner.- Returns:
- The resource owner id.
-
getAuthTime
public long getAuthTime()
Gets the time at which the user last performed an active auth, in seconds.- Returns:
- The authentication time in seconds.
-
getName
public String getName(OAuth2ProviderSettings settings) throws ServerException
Gets the name of the user, if possible.- Parameters:
settings- The settings for the current realm.- Returns:
- The name of the user, or null.
- Throws:
ServerException
-
getIdentity
public AMIdentity getIdentity()
Gets the resource owner's identity.- Returns:
- The identity.
-
-