public class AsymmetricKeyPairRsa extends AbstractAsymmetricKeyPair<RSAPrivateKey,RSAPublicKey>
AsymmetricKeyPair for Rsa.| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_RSA
The
algorithm name "RSA". |
private static KeyFactory |
keyFactory |
(package private) static BigInteger |
PUBLIC_EXPONENT
The (default) public exponent for RSA key generation.
|
privateKey, publicKey| Constructor and Description |
|---|
AsymmetricKeyPairRsa(RSAPrivateKey privateKey,
RSAPublicKey publicKey)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RSAPrivateKey |
createPrivateKey(BigInteger modulus,
BigInteger privateExponent) |
static RSAPrivateKey |
createPrivateKey(RSAPrivateKeySpec keySpec) |
static RSAPublicKey |
createPublicKey(BigInteger modulus) |
static RSAPublicKey |
createPublicKey(BigInteger modulus,
BigInteger publicExponent) |
static RSAPublicKey |
createPublicKey(RSAPublicKeySpec keySpec) |
(package private) static KeyFactory |
getKeyFactory() |
static AsymmetricKeyPairRsa |
of(BigInteger modulus,
BigInteger privateExponent) |
static AsymmetricKeyPairRsa |
of(BigInteger modulus,
BigInteger privateExponent,
BigInteger publicExponent) |
static AsymmetricKeyPairRsa |
of(String modulus,
String privateExponent)
Convenience method e.g.
|
equals, getKeyPair, getPrivateKey, getPublicKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetKeyspublic static final String ALGORITHM_RSA
algorithm name "RSA".static BigInteger PUBLIC_EXPONENT
private static KeyFactory keyFactory
public AsymmetricKeyPairRsa(RSAPrivateKey privateKey, RSAPublicKey publicKey)
privateKey - the private key.publicKey - the public key.public static AsymmetricKeyPairRsa of(BigInteger modulus, BigInteger privateExponent, BigInteger publicExponent)
modulus - is the modulus (product of two large primes).privateExponent - the private exponent.publicExponent - the public exponent.AsymmetricKeyPair.public static RSAPublicKey createPublicKey(BigInteger modulus)
modulus - the modulus.RSAPublicKey.public static RSAPublicKey createPublicKey(BigInteger modulus, BigInteger publicExponent)
modulus - the modulus.publicExponent - the public exponent.RSAPublicKey.public static RSAPublicKey createPublicKey(RSAPublicKeySpec keySpec)
keySpec - the RSAPublicKeySpec.RSAPublicKey.public static AsymmetricKeyPairRsa of(BigInteger modulus, BigInteger privateExponent)
modulus - is the modulus (product of two large primes).privateExponent - the private exponent.AsymmetricKeyPair.public static AsymmetricKeyPairRsa of(String modulus, String privateExponent)
modulus - is the modulus (product of two large primes).privateExponent - the private key encryption exponent.AsymmetricKeyPair.public static RSAPrivateKey createPrivateKey(BigInteger modulus, BigInteger privateExponent)
modulus - the modulus.privateExponent - the private exponent.RSAPrivateKey.public static RSAPrivateKey createPrivateKey(RSAPrivateKeySpec keySpec)
keySpec - the RSAPrivateKeySpec.RSAPrivateKey.static KeyFactory getKeyFactory()
Copyright © 2001–2019 mmm-Team. All rights reserved.