aQute.libg.cryptography
Class RSA
java.lang.Object
aQute.libg.cryptography.RSA
public class RSA
- extends java.lang.Object
|
Constructor Summary |
RSA()
|
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSA
public RSA()
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