public final class

ScopeFactory

extends Object
java.lang.Object
   ↳ com.amazon.identity.auth.device.api.authorization.ScopeFactory

Class Overview

Generic factory for creating Scope objects. Use this factory if a scope you want to use is not provided by a Login With Amazon enabled SDK.{@since 3.0 }

Summary

Public Methods
static Scope scopeNamed(String name, JSONObject scopeData)
Creates a scope for a given scope name and scope data.
static Scope scopeNamed(String name)
Creates a scope for a given scope name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Scope scopeNamed (String name, JSONObject scopeData)

Creates a scope for a given scope name and scope data.

Parameters
name The literal string value of the scope parameter.
scopeData The JSON representation of additional data to be used with the named scope.
Returns
  • A Scope that represents the scope of the given name and scope data.

public static Scope scopeNamed (String name)

Creates a scope for a given scope name.

Parameters
name The literal string value of the scope parameter.
Returns
  • A Scope that represents the scope of the given name.