com.mindbright.security.publickey
Class RSAKeyFactory

java.lang.Object
  extended bycom.mindbright.jca.security.KeyFactorySpi
      extended bycom.mindbright.security.publickey.RSAKeyFactory

public class RSAKeyFactory
extends KeyFactorySpi


Constructor Summary
RSAKeyFactory()
           
 
Method Summary
protected  PrivateKey engineGeneratePrivate(KeySpec keySpec)
           
protected  PublicKey engineGeneratePublic(KeySpec keySpec)
           
protected  KeySpec engineGetKeySpec(Key key, java.lang.Class keySpec)
           
protected  Key engineTranslateKey(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAKeyFactory

public RSAKeyFactory()
Method Detail

engineGeneratePublic

protected PublicKey engineGeneratePublic(KeySpec keySpec)
                                  throws InvalidKeySpecException
Specified by:
engineGeneratePublic in class KeyFactorySpi
Throws:
InvalidKeySpecException

engineGeneratePrivate

protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
                                    throws InvalidKeySpecException
Specified by:
engineGeneratePrivate in class KeyFactorySpi
Throws:
InvalidKeySpecException

engineGetKeySpec

protected KeySpec engineGetKeySpec(Key key,
                                   java.lang.Class keySpec)
                            throws InvalidKeySpecException
Specified by:
engineGetKeySpec in class KeyFactorySpi
Throws:
InvalidKeySpecException

engineTranslateKey

protected Key engineTranslateKey(Key key)
                          throws InvalidKeyException
Specified by:
engineTranslateKey in class KeyFactorySpi
Throws:
InvalidKeyException