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

Quick Search    Search Deep

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

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

public final class PBEKeyFactory
extends javax.crypto.SecretKeyFactorySpi

This is a KeyFactory for PBE. It converts key specs and secret keys into PBEKeys. It is based (as any cipher) on a service provider interface. This is SecretKeyFactorySpi as PBE ciphers are using secret key ciphers.


Field Summary
private  javax.crypto.spec.PBEKeySpec pbeKeySpec
          Internal storage for the PBEKeySpec.
 
Constructor Summary
PBEKeyFactory()
           
 
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

pbeKeySpec

private javax.crypto.spec.PBEKeySpec pbeKeySpec
Internal storage for the PBEKeySpec.

Constructor Detail

PBEKeyFactory

public PBEKeyFactory()
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.