h65338 s 00000/00000/00158 d D 1.2 97/12/09 15:24:54 luehe 3 1 c rm ,* e s 00000/00000/00000 d R 1.2 97/12/09 15:23:54 Codemgr 2 1 c SunPro Code Manager data about conflicts, renames, etc... c Name history : 1 0 security/JCE1.2/earlyaccess/javax.crypto.SecretKeyFactorySpi.html e s 00158/00000/00000 d D 1.1 97/12/09 15:23:53 luehe 1 0 c date and time created 97/12/09 15:23:53 by luehe e u U f e 0 t T I 1
All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javax.crypto.SecretKeyFactorySpi
Key factories are used to convert keys (opaque
cryptographic keys of type Key
) into key specifications
(transparent representations of the underlying key material), and vice
versa.
Secret key factories only operate on secret (symmetric) keys.
Key factories are bi-directional, i.e., they allow to build an opaque key object from a given key specification (key material), or to retrieve the underlying key material of a key object in a suitable format.
A provider should document the key specifications supported by its
secret key factory.
For example, the Sun provider SecretKeyFactory
for DES keys
supports DESKeySpec
as a transparent representation of DES
keys, and the SecretKeyFactory
for DES-EDE keys supports
DESedeKeySpec
as a transparent representation of DES-EDE keys.
SecretKey
object from the
provided key specification (key material).
public SecretKeyFactorySpi()
protected abstract SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
SecretKey
object from the
provided key specification (key material).
protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException
protected abstract SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
All Packages Class Hierarchy This Package Previous Next IndexE 1