public enum GrantType extends Enum<GrantType>
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE_GRANT |
CLIENT_CREDENTIALS_GRANT |
| Modifier and Type | Method and Description |
|---|---|
static GrantType |
defaultGrantType() |
static GrantType |
forValue(String value) |
static Optional<GrantType> |
getByName(String name) |
static GrantType |
getByNameOrDefault(String name) |
String |
getName()
The name of the grant type as defined in the OAuth 2.0 specification.
|
static GrantType |
orDefaultGrantType(GrantType grantType) |
boolean |
requiresAuthorization()
Whether the grant type requires an authorization, also known as the 3LO (3-legged OAuth) flow.
|
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_GRANT
public static final GrantType CLIENT_CREDENTIALS_GRANT
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 static GrantType defaultGrantType()
public String getName()
public boolean requiresAuthorization()
Copyright © 2020–2024 Atlassian. All rights reserved.