public static enum OAuth2.TokenAt extends Enum<OAuth2.TokenAt>
Modifier and Type | Method and Description |
---|---|
String |
getTokenPrefix() |
String |
getTokenValue(String defaultPrefix,
String token)
获得 Token 值
|
String |
getTokenVariable() |
String |
getTokenVariable(String defaultTokenVariable)
获取变量名
|
static OAuth2.TokenAt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth2.TokenAt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth2.TokenAt HEADER
public static final OAuth2.TokenAt URL
public static OAuth2.TokenAt[] values()
for (OAuth2.TokenAt c : OAuth2.TokenAt.values()) System.out.println(c);
public static OAuth2.TokenAt 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 String getTokenVariable()
public String getTokenPrefix()
public String getTokenVariable(String defaultTokenVariable)
defaultTokenVariable
- 默认的变量名,这个参数传入的应该为 @OAuth2.tokenVariable 的值Copyright © 2020. All rights reserved.