Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.provider.pk
Class RSAKeyFactory  view RSAKeyFactory download RSAKeyFactory.java

java.lang.Object
  extended byjava.security.KeyFactorySpi
      extended bycryptix.jce.provider.pk.RSAKeyFactory

public final class RSAKeyFactory
extends java.security.KeyFactorySpi

Version:
$Revision: 1.3 $

Constructor Summary
RSAKeyFactory()
           
 
Method Summary
private  java.security.PrivateKey decodePrivateKey(java.security.spec.X509EncodedKeySpec keySpec)
           
private  java.security.PublicKey decodePublicKey(java.security.spec.X509EncodedKeySpec keySpec)
           byte[] containing the DER of: SEQUENCE AlgorithmId BIT STRING where BIT STRING is the DER encoding of: SEQUENCE INTEGER modulus INTEGER publicExponent
protected  java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
          Generates a private key from the provided key specification.
protected  java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
          Generates a public key from the provided key specification.
protected  java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class keySpec)
          Returns a key specification for the given key.
protected  java.security.Key engineTranslateKey(java.security.Key key)
          Translates the key from an unknown or untrusted provider into a key for this key factory.
 
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

engineGeneratePrivate

protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
                                                  throws java.security.spec.InvalidKeySpecException
Description copied from class: java.security.KeyFactorySpi
Generates a private key from the provided key specification.


engineGeneratePublic

protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
                                                throws java.security.spec.InvalidKeySpecException
Description copied from class: java.security.KeyFactorySpi
Generates a public key from the provided key specification.


engineGetKeySpec

protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
                                                      java.lang.Class keySpec)
                                               throws java.security.spec.InvalidKeySpecException
Description copied from class: java.security.KeyFactorySpi
Returns a key specification for the given key. keySpec identifies the specification class to return the key material in.


engineTranslateKey

protected java.security.Key engineTranslateKey(java.security.Key key)
                                        throws java.security.InvalidKeyException
Description copied from class: java.security.KeyFactorySpi
Translates the key from an unknown or untrusted provider into a key for this key factory.


decodePrivateKey

private java.security.PrivateKey decodePrivateKey(java.security.spec.X509EncodedKeySpec keySpec)
                                           throws java.security.spec.InvalidKeySpecException

decodePublicKey

private java.security.PublicKey decodePublicKey(java.security.spec.X509EncodedKeySpec keySpec)
                                         throws java.security.spec.InvalidKeySpecException
 byte[] containing the DER of:
 SEQUENCE
   AlgorithmId
   BIT STRING

 where BIT STRING is the DER encoding of:
   SEQUENCE
     INTEGER modulus
     INTEGER publicExponent