Package | Description |
---|---|
cn.orionsec.kit.lang.utils.crypto | |
cn.orionsec.kit.lang.utils.crypto.enums |
Modifier and Type | Method and Description |
---|---|
static byte[] |
RSA.sign(byte[] bs,
PrivateKey privateKey,
RSASignature signModel)
RSA私钥签名
|
static byte[] |
RSA.sign(byte[] bs,
String privateKey,
RSASignature signModel) |
static String |
RSA.sign(String s,
PrivateKey privateKey,
RSASignature signModel) |
static String |
RSA.sign(String s,
String privateKey,
RSASignature signModel) |
static boolean |
RSA.verify(byte[] bs,
PublicKey publicKey,
byte[] sign,
RSASignature signModel)
RSA公钥验签
|
static boolean |
RSA.verify(byte[] bs,
String publicKey,
byte[] sign,
RSASignature signModel) |
static boolean |
RSA.verify(String s,
PublicKey publicKey,
String sign,
RSASignature signModel) |
static boolean |
RSA.verify(String s,
String publicKey,
String sign,
RSASignature signModel) |
Modifier and Type | Method and Description |
---|---|
static RSASignature |
RSASignature.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RSASignature[] |
RSASignature.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2024. All rights reserved.