Package org.pac4j.oauth.client
Enum WechatClient.WechatScope
- java.lang.Object
-
- java.lang.Enum<WechatClient.WechatScope>
-
- org.pac4j.oauth.client.WechatClient.WechatScope
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WechatClient.WechatScope>
- Enclosing class:
- WechatClient
public static enum WechatClient.WechatScope extends java.lang.Enum<WechatClient.WechatScope>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SNSAPI_BASE
Exchange code for access_token, refresh_token, and authorized scopeSNSAPI_LOGIN
Only for WeChat QRCode login.SNSAPI_USERINFO
Get user personal information
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WechatClient.WechatScope
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WechatClient.WechatScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SNSAPI_LOGIN
public static final WechatClient.WechatScope SNSAPI_LOGIN
Only for WeChat QRCode login. Get the nickname, avatar, and gender of the logged in user.
-
SNSAPI_BASE
public static final WechatClient.WechatScope SNSAPI_BASE
Exchange code for access_token, refresh_token, and authorized scope
-
SNSAPI_USERINFO
public static final WechatClient.WechatScope SNSAPI_USERINFO
Get user personal information
-
-
Method Detail
-
values
public static WechatClient.WechatScope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WechatClient.WechatScope c : WechatClient.WechatScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WechatClient.WechatScope valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-