public class RSAPublicKeySpec extends Object implements KeySpec
This class specifies an RSA public key.
Key
, KeyFactory
, KeySpec
, X509EncodedKeySpec
, RSAPrivateKeySpec
, RSAPrivateCrtKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Creates a new RSAPublicKeySpec.
modulus
- the moduluspublicExponent
- the public exponentpublic BigInteger getModulus()
Returns the modulus.
public BigInteger getPublicExponent()
Returns the public exponent.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.