public class AuthenticationConf extends BaseConf
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthenticationConf.Type |
| Modifier and Type | Field and Description |
|---|---|
static String |
KeyAppId |
static String |
KeyAppKey |
static String |
KeyCookieKey |
static String |
KeyCookieName |
static String |
KeyType |
| Constructor and Description |
|---|
AuthenticationConf() |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationConf |
buildWithAnonymous()
allow anonymouse access
|
static AuthenticationConf |
buildWithCookie(String name,
String encryptKey) |
static AuthenticationConf |
buildWithSingleApp(String appId,
String appKey)
请求时传输appId,然后所有数据用appKey签名,
appId匹配,数据签名无错误即是为认证有效,
签名字段为sign
|
AuthenticationConf.Type |
getType() |
config, getBoolean, getInteger, getString, getStringArray, set, set, set, setpublic static String KeyType
public static String KeyCookieName
public static String KeyCookieKey
public static String KeyAppId
public static String KeyAppKey
public static AuthenticationConf buildWithCookie(String name, String encryptKey)
public static AuthenticationConf buildWithAnonymous()
public static AuthenticationConf buildWithSingleApp(String appId, String appKey)
appId - appKey - public AuthenticationConf.Type getType()
Copyright © 2019. All rights reserved.