Save This Page
Home » openjdk-7 » javax » crypto » [javadoc | source]
javax.crypto
abstract public class: SecretKeyFactorySpi [javadoc | source]
java.lang.Object
   javax.crypto.SecretKeyFactorySpi
This class defines the Service Provider Interface (SPI) for the SecretKeyFactory class. All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a secret-key factory for a particular algorithm.

A provider should document all the key specifications supported by its secret key factory. For example, the DES secret-key factory supplied by the "SunJCE" provider supports DESKeySpec as a transparent representation of DES keys, and that provider's secret-key factory for Triple DES keys supports DESedeKeySpec as a transparent representation of Triple DES keys.

Method from javax.crypto.SecretKeyFactorySpi Summary:
engineGenerateSecret,   engineGetKeySpec,   engineTranslateKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.crypto.SecretKeyFactorySpi Detail:
 abstract protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
    Generates a SecretKey object from the provided key specification (key material).
 abstract protected KeySpec engineGetKeySpec(SecretKey key,
    Class keySpec) throws InvalidKeySpecException
    Returns a specification (key material) of the given key object in the requested format.
 abstract protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
    Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.