java.lang.Object
javax.crypto.SecretKeyFactorySpi
cryptix.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
desKeySpec
private javax.crypto.spec.DESKeySpec desKeySpec
DESKeyFactory
public DESKeyFactory()
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.