public class RSA
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
ALGORITHM |
(package private) static java.security.KeyFactory |
factory |
Constructor and Description |
---|
RSA() |
Modifier and Type | Method and Description |
---|---|
static java.security.interfaces.RSAPrivateKey |
create(java.security.spec.RSAPrivateKeySpec keyspec) |
static java.security.interfaces.RSAPublicKey |
create(java.security.spec.RSAPublicKeySpec keyspec) |
static java.security.interfaces.RSAPrivateKey |
createPrivate(java.math.BigInteger m,
java.math.BigInteger e) |
static java.security.interfaces.RSAPublicKey |
createPublic(java.math.BigInteger m,
java.math.BigInteger e) |
static Pair<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey> |
generate() |
private static java.security.KeyFactory |
getKeyFactory() |
static final java.lang.String ALGORITHM
static final java.security.KeyFactory factory
private static java.security.KeyFactory getKeyFactory()
public static java.security.interfaces.RSAPrivateKey create(java.security.spec.RSAPrivateKeySpec keyspec) throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public static java.security.interfaces.RSAPublicKey create(java.security.spec.RSAPublicKeySpec keyspec) throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public static java.security.interfaces.RSAPublicKey createPublic(java.math.BigInteger m, java.math.BigInteger e) throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public static java.security.interfaces.RSAPrivateKey createPrivate(java.math.BigInteger m, java.math.BigInteger e) throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public static Pair<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey> generate() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException