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