| 程序包 | 说明 |
|---|---|
| com.lehuipay.leona.exception | |
| com.lehuipay.leona.utils |
| 构造器和说明 |
|---|
LeonaException(LeonaRuntimeException e) |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
HMAC.hmacSHA256(byte[] key,
byte[] content)
HMAC-SHA256签名算法
|
static byte[] |
RSAEncrypt.privateDecrypt(RSAPrivateKey privateKey,
byte[] cipherData)
私钥解密过程
|
static byte[] |
RSAEncrypt.privateEncrypt(RSAPrivateKey privateKey,
String plainTextData)
私钥加密过程
|
static byte[] |
RSAEncrypt.publicDecrypt(RSAPublicKey publicKey,
byte[] cipherData)
公钥解密过程
|
static byte[] |
RSAEncrypt.sign(byte[] data,
RSAPrivateKey privateKey)
rsa签名
|
static boolean |
RSAEncrypt.verify(byte[] content,
byte[] sign,
RSAPublicKey publicKey)
rsa验签
|
Copyright © 2020. All rights reserved.