| 程序包 | 说明 |
|---|---|
| com.jn.langx.security.crypto.cipher | |
| com.jn.langx.security.crypto.signature |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultAlgorithmParameterSupplier
基于 Provider 中注册的 Spec, Generator 来生成 参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
AlgorithmParameterSupplier |
CipherAlgorithmSuite.getParameterSupplier() |
AlgorithmParameterSupplier |
CipherAlgorithmSuiteRegistry.getParmameterSupplier(String algorithm) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CipherAlgorithmSuiteRegistry.add(String algorithm,
String transformation,
AlgorithmParameterSupplier supplier) |
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) |
void |
CipherAlgorithmSuite.setParameterSupplier(AlgorithmParameterSupplier parameterSupplier) |
| 构造器和说明 |
|---|
CipherAlgorithmSuite(String algorithm,
String transformation,
AlgorithmParameterSupplier parameterSupplier) |
CipherAlgorithmSuite(String algorithm,
String transformation,
AlgorithmParameterSupplier parameterSupplier,
Integer keySize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2022. All rights reserved.