Class AESSecretKeyFactory
- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- com.fortanix.sdkms.jce.provider.keys.sym.aes.AESSecretKeyFactory
-
public class AESSecretKeyFactory extends javax.crypto.SecretKeyFactorySpi
-
-
Constructor Summary
Constructors Constructor Description AESSecretKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.crypto.SecretKeyengineGenerateSecret(java.security.spec.KeySpec keySpec)protected java.security.spec.KeySpecengineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class<?> keySpec)Returns a specification (key material) of the given key in the requested format.protected javax.crypto.SecretKeyengineTranslateKey(javax.crypto.SecretKey key)
-
-
-
Method Detail
-
engineGenerateSecret
protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGenerateSecretin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class<?> keySpec) throws java.security.spec.InvalidKeySpecExceptionReturns a specification (key material) of the given key in the requested format.- Specified by:
engineGetKeySpecin classjavax.crypto.SecretKeyFactorySpi- Parameters:
key- the keykeySpec- the requested format in which the key material shall be returned- Returns:
- the underlying key specification (key material) in the requested format
- Throws:
java.security.spec.InvalidKeySpecException- if the requested key specification is inappropriate for the given key, or the given key cannot be processed (e.g., the given key has an unrecognized algorithm or format).
-
engineTranslateKey
protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key) throws java.security.InvalidKeyException- Specified by:
engineTranslateKeyin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.security.InvalidKeyException
-
-