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

Quick Search    Search Deep

cryptix.jce.provider.keyfactory
Class DESKeyFactory  view DESKeyFactory download DESKeyFactory.java

java.lang.Object
  extended byjavax.crypto.SecretKeyFactorySpi
      extended bycryptix.jce.provider.keyfactory.DESKeyFactory

public final class DESKeyFactory
extends javax.crypto.SecretKeyFactorySpi

This is the KeyFactory for DES. It translates key specs and secret keys into DESKeys.


Field Summary
private  javax.crypto.spec.DESKeySpec desKeySpec
           
 
Constructor Summary
DESKeyFactory()
           
 
Method Summary
protected  javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
          This method generates a secret key based on the given KeySpec.
protected  java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec)
          This method returns a key specification of the given secret key using the provided key spec class as the output format.
protected  javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key)
          This method translates a secret key of an untrusted or unknown provider into a "valid" secret key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desKeySpec

private javax.crypto.spec.DESKeySpec desKeySpec
Constructor Detail

DESKeyFactory

public DESKeyFactory()
Method Detail

engineGenerateSecret

protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
                                               throws java.security.spec.InvalidKeySpecException
This method generates a secret key based on the given KeySpec. Either decode data of the key or regenerate the key based on the keyspec.


engineGetKeySpec

protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key,
                                                      java.lang.Class keySpec)
                                               throws java.security.spec.InvalidKeySpecException
This method returns a key specification of the given secret key using the provided key spec class as the output format.


engineTranslateKey

protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key)
                                             throws java.security.InvalidKeyException
This method translates a secret key of an untrusted or unknown provider into a "valid" secret key. status: pending, not tested.