public final class RSAKeysGenerator extends Object
Generator that can provide key pair for RSA encryption. This generator can be re-used for multiple key pair generations.
This class is immutable and can be considered thread safe.
| Constructor and Description |
|---|
RSAKeysGenerator()
Creates a new generator of RSA keys with default 1024 size of the key.
|
RSAKeysGenerator(int keySize)
Creates a new generator of RSA keys with given key size.
|
public RSAKeysGenerator()
public RSAKeysGenerator(int keySize)
throws EncryptionException
keySize - size of the keyEncryptionExceptionpublic KeyPair generateKeys()
Copyright © 2015. All rights reserved.