public static class DESede.KeyFactory extends BaseSecretKeyFactory
algName, algOidMD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S1_UTF8, PKCS5S2, PKCS5S2_UTF8, SHA1, SHA256| Constructor and Description |
|---|
KeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
engineGenerateSecret(KeySpec keySpec)
Generate a secret key from the specified key specification.
|
protected KeySpec |
engineGetKeySpec(SecretKey key,
Class keySpec)
Returns the key specification of the specified secret key.
|
engineTranslateKeyprotected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException
SecretKeyFactorySpiengineGetKeySpec in class BaseSecretKeyFactorykey - 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 SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
SecretKeyFactorySpiengineGenerateSecret in class BaseSecretKeyFactorykeySpec - the key specification.InvalidKeySpecException - if the specified key specification cannot be used to generate
a secret key.