| 程序包 | 说明 |
|---|---|
| net.lamgc.utils.encrypt |
| 限定符和类型 | 方法和说明 |
|---|---|
static HmacEncryptUtils.Algorithm |
HmacEncryptUtils.Algorithm.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HmacEncryptUtils.Algorithm[] |
HmacEncryptUtils.Algorithm.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
HmacEncryptUtils.encrypt(byte[] data,
SecretKey key,
HmacEncryptUtils.Algorithm algorithm)
对数据取Hmac数据摘要
|
static SecretKey |
HmacEncryptUtils.getSecretKey(byte[] keyRules,
int keySize,
HmacEncryptUtils.Algorithm algorithm)
生成指定算法的SecretKey对象
|
Copyright © 2020. All rights reserved.