Package org.forgerock.am.iot
Interface IotTokenService
-
public interface IotTokenService
TheIotTokenService
provides an interface to OAuth 2.0 functionality required by things.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessToken
getAccessToken(Context context, AMIdentity resourceOwner, List<String> scope)
Get an access token for the given resource owner.
-
-
-
Method Detail
-
getAccessToken
AccessToken getAccessToken(Context context, AMIdentity resourceOwner, List<String> scope) throws ResourceException
Get an access token for the given resource owner.- Parameters:
context
- the context of the originating requestresourceOwner
- theAMIdentity
of the resource ownerscope
- a list of the authorized scopes. Can be an empty list, in which case the default scopes defined in the OAuth 2.0 client will be returned.- Returns:
- an access token with the resource owner as subject
- Throws:
ResourceException
- if the access token request failed
-
-