java.lang.Object
javax.crypto.SecretKeyFactorySpi
cryptix.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pbeKeySpec
private javax.crypto.spec.PBEKeySpec pbeKeySpec
- Internal storage for the PBEKeySpec.
PBEKeyFactory
public PBEKeyFactory()
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.