public class RSAPrivateKeyFactory extends Object implements KeyFactory<Key>
| Constructor and Description |
|---|
RSAPrivateKeyFactory(BigInteger modulus,
BigInteger exponent)
Creates a new RSA private key factory with given modulus and exponent.
|
public RSAPrivateKeyFactory(BigInteger modulus, BigInteger exponent)
modulus - modulus of keyexponent - exponent of private keypublic Key getKey() throws EncryptionException
KeyFactorygetKey in interface KeyFactory<Key>EncryptionException - possible exception if key cannot be constructedCopyright © 2015. All rights reserved.