public class AsymmetricKeyCreatorRsa extends AbstractAsymmetricKeyCreator<RSAPrivateKey,RSAPublicKey,AsymmetricKeyPairRsa>
AsymmetricKeyCreator for RSA.provider| Constructor and Description |
|---|
AsymmetricKeyCreatorRsa(int keyLength)
The constructor.
|
AsymmetricKeyCreatorRsa(int keyLength,
SecurityProvider provider,
RandomFactory randomFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AsymmetricKeyPairRsa |
createKeyPair(RSAPrivateKey privateKey,
RSAPublicKey publicKey) |
int |
getKeyLength(RSAPrivateKey privateKey) |
int |
getKeyLength(RSAPublicKey publicKey) |
asData, asData, asData, createKeyPair, createPrivateKey, createPublicKey, generateKeyPair, getKeyLength, init, register, registercreateSecureRandom, getRandomFactorygetAlgorithmgetProvidercreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasBinary, asBinary, asBinary, asData, asData, asData, createKeyPair, createPrivateKey, createPublicKey, verifyKey, verifyKeygetAlgorithmasBinaryasBinaryasBinarypublic AsymmetricKeyCreatorRsa(int keyLength)
keyLength - the key length.public AsymmetricKeyCreatorRsa(int keyLength,
SecurityProvider provider,
RandomFactory randomFactory)
keyLength - the key length.provider - the provider.randomFactory - the random factory.public AsymmetricKeyPairRsa createKeyPair(RSAPrivateKey privateKey, RSAPublicKey publicKey)
privateKey - the PrivateKey.publicKey - the corresponding PublicKey.AsymmetricKeyPair.public int getKeyLength(RSAPrivateKey privateKey)
privateKey - the PrivateKey.key length of the given key in bits.public int getKeyLength(RSAPublicKey publicKey)
publicKey - the PublicKey.key length of the given key in bits.Copyright © 2001–2019 mmm-Team. All rights reserved.