public enum GrantType extends Enum<GrantType>
| 枚举常量和说明 |
|---|
client_credentials
客户端认证鉴权
|
password
密码认证鉴权
|
refresh_token
只刷新token使用
|
public static final GrantType password
public static final GrantType client_credentials
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.