public enum TokenStrategy extends Enum<TokenStrategy>
Enum Constant and Description |
---|
ACCESS_TOKEN_PARAMETER
Indicates that the access token should be carried as a query parameter named "access_token".
|
AUTHORIZATION_HEADER
Indicates that the access token should be carried in the Authorization header as an OAuth2 Bearer token.
|
OAUTH_TOKEN_PARAMETER
Indicates that the access token should be carried as a query parameter named "oauth_token".
|
Modifier and Type | Method and Description |
---|---|
static TokenStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenStrategy AUTHORIZATION_HEADER
public static final TokenStrategy ACCESS_TOKEN_PARAMETER
public static final TokenStrategy OAUTH_TOKEN_PARAMETER
public static TokenStrategy[] values()
for (TokenStrategy c : TokenStrategy.values()) System.out.println(c);
public static TokenStrategy 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 null