public enum GrantType extends Enum<GrantType>
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE
The authorization code grant type
|
CLIENT_CREDENTIALS
The client_credentials grant type
|
IMPLICIT
The implicit grant type
|
PASSWORD
The password grant type
|
REFRESH_TOKEN
The refresh token grant type
|
| Modifier and Type | Method and Description |
|---|---|
static GrantType |
from(String s) |
String |
getValue() |
String |
toString() |
static GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrantType AUTHORIZATION_CODE
public static final GrantType CLIENT_CREDENTIALS
public static final GrantType IMPLICIT
public static final GrantType PASSWORD
public static final GrantType REFRESH_TOKEN
public static GrantType[] values()
for (GrantType c : GrantType.values()) System.out.println(c);
public static GrantType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
Copyright © 2020. All rights reserved.