| 程序包 | 说明 |
|---|---|
| com.jn.langx.security.crypto.cipher | |
| com.jn.langx.security.crypto.signature |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
Ciphers.decrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier) |
static byte[] |
Ciphers.doEncryptOrDecrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier,
boolean encrypt) |
static byte[] |
Ciphers.encrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PublicKey publicKey,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
PrivateKey privateKey,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
byte[] publicKeyBytes,
String algorithm,
String provider,
AlgorithmParameterSupplier parameterSupplier) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
PublicKey publicKey,
String algorithm,
String provider,
AlgorithmParameterSupplier parameterSupplier) |
Copyright © 2021. All rights reserved.