public class RSA extends Object
Constructor and Description |
---|
RSA() |
Modifier and Type | Method and Description |
---|---|
static RSAPrivateKey |
create(RSAPrivateKeySpec keyspec) |
static RSAPublicKey |
create(RSAPublicKeySpec keyspec) |
static RSAPrivateKey |
createPrivate(BigInteger m,
BigInteger e) |
static RSAPublicKey |
createPublic(BigInteger m,
BigInteger e) |
static Pair<RSAPrivateKey,RSAPublicKey> |
generate() |
public static RSAPrivateKey create(RSAPrivateKeySpec keyspec) throws InvalidKeySpecException
InvalidKeySpecException
public static RSAPublicKey create(RSAPublicKeySpec keyspec) throws InvalidKeySpecException
InvalidKeySpecException
public static RSAPublicKey createPublic(BigInteger m, BigInteger e) throws InvalidKeySpecException
InvalidKeySpecException
public static RSAPrivateKey createPrivate(BigInteger m, BigInteger e) throws InvalidKeySpecException
InvalidKeySpecException
public static Pair<RSAPrivateKey,RSAPublicKey> generate() throws NoSuchAlgorithmException
NoSuchAlgorithmException
Copyright © 2021 aQute SARL. All rights reserved.