public static final enum

AuthorizeRequest.GrantType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.amazon.identity.auth.device.api.authorization.AuthorizeRequest.GrantType

Class Overview

The different kinds of authorization grants that can be requested from Login With Amazon. An authorization grant is a credential representing the access to resources that the user has granted.

Summary

Enum Values
AuthorizeRequest.GrantType  ACCESS_TOKEN  An OAuth 2.0 access token. 
AuthorizeRequest.GrantType  AUTHORIZATION_CODE  An OAuth 2.0 authorization code grant. 
Public Methods
static AuthorizeRequest.GrantType valueOf(String name)
final static GrantType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final AuthorizeRequest.GrantType ACCESS_TOKEN

An OAuth 2.0 access token. When requesting an access token, Login With Amazon will persist this token and refresh it when necessary on your behalf.

public static final AuthorizeRequest.GrantType AUTHORIZATION_CODE

An OAuth 2.0 authorization code grant. Login With Amazon does not persist this grant and does not allow access to use Login With Amazon-enabled APIs that require authorization.

Public Methods

public static AuthorizeRequest.GrantType valueOf (String name)

public static final GrantType[] values ()