public final class AuthCodeHelper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_KEY_LENGTH
默认随机秘钥长度
|
public static final int DEFAULT_KEY_LENGTH
public static String encode(String str, String key, long expiry)
str - 待加密内容key - 秘钥expiry - 有效期,单位毫秒NullPointerException - 当str、key为空的时候抛出NullPointerException异常public static String encode(String str, String key, long expiry, int randomKeyLength)
str - 待加密内容key - 秘钥expiry - 有效期,单位毫秒randomKeyLength - 随机秘钥长度NullPointerException - 当str、key为空的时候抛出NullPointerException异常Copyright © 2021 guerlab. All rights reserved.