public final class Rsa extends AsymmetricAccess<SignatureRsa,RSAPrivateKey,RSAPublicKey,AsymmetricKeyPairRsa,AsymmetricKeyCreatorRsa>
| Modifier and Type | Field and Description |
|---|---|
private int |
keyLength |
private SecurityProvider |
provider |
cryptorConfig, randomFactory| Modifier | Constructor and Description |
|---|---|
private |
Rsa(SignatureConfigRsa signatureConfig,
AsymmetricCryptorConfig<RSAPrivateKey,RSAPublicKey> cryptorConfig,
RandomFactory randomFactory,
int keyLength,
SecurityProvider provider)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AsymmetricKeyCreatorRsa |
newKeyCreator() |
static Rsa |
of(int keyLength,
HashConfig hashConfig) |
static Rsa |
of(int keyLength,
HashConfig hashConfig,
RandomFactory randomFactory) |
static Rsa |
of(int keyLength,
HashConfig hashConfig,
String hashAlgorithm,
RandomFactory randomFactory,
SecurityProvider provider) |
static Rsa |
of(int keyLength,
String hashAlgorithm) |
static Rsa |
of4096(HashConfig hashConfig) |
static Rsa |
of4096(String hashAlgorithm) |
createSignature, getCryptorConfig, getSignatureConfig, getSignatureFactoryWithoutHash, newDecryptor, newDecryptorUnsafe, newEncryptor, newEncryptorUnsafe, newHashCreator, newSigner, newVerifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewSignerUnsafe, newVerifierUnsafeprivate final SecurityProvider provider
private final int keyLength
private Rsa(SignatureConfigRsa signatureConfig, AsymmetricCryptorConfig<RSAPrivateKey,RSAPublicKey> cryptorConfig, RandomFactory randomFactory, int keyLength, SecurityProvider provider)
signatureConfig - the SignatureConfigRsa.cryptorConfig - the AsymmetricCryptorConfig.randomFactory - the optional RandomFactory.keyLength - the key length.provider - the optional SecurityProvider.public AsymmetricKeyCreatorRsa newKeyCreator()
KeyCreator. May be reused but is not guaranteed to be thread-safe.public static Rsa of4096(String hashAlgorithm)
hashAlgorithm - the algorithm for the hash used for signatures.Rsa instance with a key length of 4096 bits.public static Rsa of4096(HashConfig hashConfig)
hashConfig - the HashConfig for hashing data for signatures.Rsa instance with a key length of 4096 bits.public static Rsa of(int keyLength, String hashAlgorithm)
keyLength - the key length in
bits.hashAlgorithm - the algorithm for the hash used for signatures.Rsa instance.public static Rsa of(int keyLength, HashConfig hashConfig)
keyLength - the key length in
bits.hashConfig - the HashConfig for hashing data for signatures.Rsa instance.public static Rsa of(int keyLength, HashConfig hashConfig, RandomFactory randomFactory)
keyLength - the key length in
bits.hashConfig - the HashConfig for hashing data for signatures.randomFactory - the RandomFactory.Rsa instance.public static Rsa of(int keyLength, HashConfig hashConfig, String hashAlgorithm, RandomFactory randomFactory, SecurityProvider provider)
keyLength - the key length in
bits.hashConfig - the HashConfig for hashing data for signatures.hashAlgorithm - the hash algorithm for the signature (e.g. for
HMac).randomFactory - the RandomFactory.provider - the SecurityProvider to use.Rsa instance.Copyright © 2001–2019 mmm-Team. All rights reserved.