Package aQute.libg.cryptography
Class RSA
- java.lang.Object
-
- aQute.libg.cryptography.RSA
-
public class RSA extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RSA()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.interfaces.RSAPrivateKeycreate(java.security.spec.RSAPrivateKeySpec keyspec)static java.security.interfaces.RSAPublicKeycreate(java.security.spec.RSAPublicKeySpec keyspec)static java.security.interfaces.RSAPrivateKeycreatePrivate(java.math.BigInteger m, java.math.BigInteger e)static java.security.interfaces.RSAPublicKeycreatePublic(java.math.BigInteger m, java.math.BigInteger e)static Pair<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>generate()private static java.security.KeyFactorygetKeyFactory()
-
-
-
Field Detail
-
ALGORITHM
static final java.lang.String ALGORITHM
- See Also:
- Constant Field Values
-
factory
static final java.security.KeyFactory factory
-
-
Method Detail
-
getKeyFactory
private static java.security.KeyFactory getKeyFactory()
-
create
public static java.security.interfaces.RSAPrivateKey create(java.security.spec.RSAPrivateKeySpec keyspec) throws java.security.spec.InvalidKeySpecException- Throws:
java.security.spec.InvalidKeySpecException
-
create
public static java.security.interfaces.RSAPublicKey create(java.security.spec.RSAPublicKeySpec keyspec) throws java.security.spec.InvalidKeySpecException- Throws:
java.security.spec.InvalidKeySpecException
-
createPublic
public static java.security.interfaces.RSAPublicKey createPublic(java.math.BigInteger m, java.math.BigInteger e) throws java.security.spec.InvalidKeySpecException- Throws:
java.security.spec.InvalidKeySpecException
-
createPrivate
public static java.security.interfaces.RSAPrivateKey createPrivate(java.math.BigInteger m, java.math.BigInteger e) throws java.security.spec.InvalidKeySpecException- Throws:
java.security.spec.InvalidKeySpecException
-
generate
public static Pair<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey> generate() throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
-