public class SecurityCore extends Object implements SecurityConstants
BETA_STATUS, CURRENT, CURRENT_NICK_ENCRYPT_TYPE, CURRENT_PHONE_ENCRYPT_TYPE, CURRENT_RECEIVER_NAME_ENCRYPT_TYPE, DEFAULT_ENCRYPT_SLIDE_SIZE, DEFAULT_INDEX_ENCRYPT_COMPRESS_LEN, DEFAULT_INTERVAL, DEFAULT_MAX_INTERVAL, ENCRYPT_INDEX_COMPRESS_LEN, ENCRYPT_SLIDE_SIZE, INDEX_ENCRYPT_TYPE, NICK, NICK_SEPARATOR, NICK_SEPARATOR_CHAR, NORMAL, NORMAL_ENCRYPT_TYPE, NORMAL_SEPARATOR, NORMAL_SEPARATOR_CHAR, PHONE, PHONE_SEPARATOR, PHONE_SEPARATOR_CHAR, PREVIOUS, PREVIOUS_NICK_ENCRYPT_TYPE, PREVIOUS_PHONE_ENCRYPT_TYPE, PREVIOUS_RECEIVER_NAME_ENCRYPT_TYPE, PUBLISH_STATUS, RECEIVER_NAME, SEARCH, SIMPLE, SIMPLE_CHAR, SIMPLE_SEPARATOR, UNDERLINE| Constructor and Description |
|---|
SecurityCore(DefaultTaobaoClient taobaoClient,
String randomNum,
int corePoolSize,
int maxPoolSize,
int maxQueue,
boolean streetest) |
| Modifier and Type | Method and Description |
|---|---|
static LruHashMap<String,SecretContext> |
getAppUserSecretCache() |
int |
getCompressLen()
获取压缩长度
|
SecretContext |
getSecret(String session,
Long secretVersion) |
int |
getSlideSize()
获取滑动窗口大小
|
boolean |
isIndexEncrypt(String key,
Long version)
判断密文是否支持检索
|
void |
setRandomNum(String randomNum) |
static void |
shutdown() |
public SecurityCore(DefaultTaobaoClient taobaoClient, String randomNum, int corePoolSize, int maxPoolSize, int maxQueue, boolean streetest)
public static void shutdown()
public static LruHashMap<String,SecretContext> getAppUserSecretCache()
public boolean isIndexEncrypt(String key, Long version)
key - version - public int getCompressLen()
public int getSlideSize()
public void setRandomNum(String randomNum)
public SecretContext getSecret(String session, Long secretVersion) throws ApiException
session - secretVersion - ApiExceptionCopyright © 2021. All rights reserved.