Interface IotTokenService


  • public interface IotTokenService
    The IotTokenService provides an interface to OAuth 2.0 functionality required by things.
    • 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 request
        resourceOwner - the AMIdentity of the resource owner
        scope - 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