public class RSABuilder extends AsymmetricAlgorithmBuilder
RSAKeysGenerator.
Recommended usage:
BigInteger modulus =
EncryptionAlgorithm aes = new RSABuilder()
.publicKey("myKeySalt) // optional
.iterations(27) // optional
.build();
Note that this builder is mutable but built instances are immutable and thus thread safe.
For more information about the implementation, see SymmetricAlgorithm.
AsymmetricAlgorithm,
RSAKeysGenerator| Constructor and Description |
|---|
RSABuilder()
Creates a new builder for RSA encryption algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAlgorithm()
Gets a name of algorithm supported by crypto.
|
build, encoding, keyPair, privateKey, privateKey, publicKey, publicKeypublic RSABuilder()
protected String getAlgorithm()
AsymmetricAlgorithmBuildergetAlgorithm in class AsymmetricAlgorithmBuilderCopyright © 2014. All rights reserved.