public static enum OAuth2.GrantType extends Enum<OAuth2.GrantType>
Enum Constant and Description |
---|
CLIENT_CREDENTIALS
客户端类型
|
PASSWORD
密码类型
|
Modifier and Type | Method and Description |
---|---|
String |
getValue(String defaultValue)
获取 GrantType 的实际请求参数值
|
static OAuth2.GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth2.GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth2.GrantType PASSWORD
public static final OAuth2.GrantType CLIENT_CREDENTIALS
public static OAuth2.GrantType[] values()
for (OAuth2.GrantType c : OAuth2.GrantType.values()) System.out.println(c);
public static OAuth2.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 nullCopyright © 2020. All rights reserved.