public abstract class SecretKeyFactorySpi extends Object
SecretKeyFactory class.| Constructor and Description |
|---|
SecretKeyFactorySpi()
Creates a new
SecretKeyFactorySpi instance. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SecretKey |
engineGenerateSecret(KeySpec keySpec)
Generate a secret key from the specified key specification.
|
protected abstract KeySpec |
engineGetKeySpec(SecretKey key,
Class keySpec)
Returns the key specification of the specified secret key.
|
protected abstract SecretKey |
engineTranslateKey(SecretKey key)
Translates the specified secret key into an instance of the corresponding
key from the provider of this key factory.
|
public SecretKeyFactorySpi()
SecretKeyFactorySpi instance.protected abstract SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
keySpec - the key specification.InvalidKeySpecException - if the specified key specification cannot be used to generate
a secret key.protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException
key - the secret key to get the specification from.keySpec - the target key specification class.InvalidKeySpecException - if the specified secret key cannot be transformed into the
requested key specification.protected abstract SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
key - the secret key to translate.InvalidKeyException - if the specified key cannot be translated using this key
factory.