aQute.libg.cryptography
Class RSA
java.lang.Object
aQute.libg.cryptography.RSA
public class RSA
- extends Object
Constructor Summary |
RSA()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSA
public RSA()
create
public static RSAPrivateKey create(RSAPrivateKeySpec keyspec)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
create
public static RSAPublicKey create(RSAPublicKeySpec keyspec)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
createPublic
public static RSAPublicKey createPublic(BigInteger m,
BigInteger e)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
createPrivate
public static RSAPrivateKey createPrivate(BigInteger m,
BigInteger e)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
generate
public static Pair<RSAPrivateKey,RSAPublicKey> generate()
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
Copyright © 2012 aQute SARL. All Rights Reserved.