aQute.libg.cryptography
Class RSA

java.lang.Object
  extended by aQute.libg.cryptography.RSA

public class RSA
extends Object


Constructor Summary
RSA()
           
 
Method Summary
static RSAPrivateKey create(RSAPrivateKeySpec keyspec)
           
static RSAPublicKey create(RSAPublicKeySpec keyspec)
           
static RSAPrivateKey createPrivate(BigInteger m, BigInteger e)
           
static RSAPublicKey createPublic(BigInteger m, BigInteger e)
           
static Pair<RSAPrivateKey,RSAPublicKey> generate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSA

public RSA()
Method Detail

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.