Package aQute.libg.cryptography
Class RSA
java.lang.Object
aQute.libg.cryptography.RSA
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final KeyFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RSAPrivateKey
create
(RSAPrivateKeySpec keyspec) static RSAPublicKey
create
(RSAPublicKeySpec keyspec) static RSAPrivateKey
static RSAPublicKey
createPublic
(BigInteger m, BigInteger e) static Pair<RSAPrivateKey,
RSAPublicKey> generate()
private static KeyFactory
-
Field Details
-
ALGORITHM
- See Also:
-
factory
-
-
Constructor Details
-
RSA
public RSA()
-
-
Method Details
-
getKeyFactory
-
create
- Throws:
InvalidKeySpecException
-
create
- Throws:
InvalidKeySpecException
-
createPublic
- Throws:
InvalidKeySpecException
-
createPrivate
public static RSAPrivateKey createPrivate(BigInteger m, BigInteger e) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
generate
- Throws:
NoSuchAlgorithmException
-