java.lang.Object
javax.crypto.SecretKeyFactorySpi
com.ibm.crypto.hdwrCCA.provider.HMACSHA512KeyFactory
This class builds a secret key for use with the HMACSHA512 algorithm.
-
Constructor Summary
ConstructorsConstructorDescriptionSet the HMAC algorithm name and verify the JCE framework. -
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKey
engineGenerateSecret
(KeySpec keySpec) Generates a HMACSecretKey
object from the provided key specification (key material).protected KeySpec
engineGetKeySpec
(SecretKey key, Class keySpec) This method is currently unsupported.protected SecretKey
This method is currently unsupported.
-
Constructor Details
-
HMACSHA512KeyFactory
public HMACSHA512KeyFactory()Set the HMAC algorithm name and verify the JCE framework.- Throws:
SecurityException
- if unable to verify the JCE framework.
-
-
Method Details
-
engineGenerateSecret
Generates a HMACSecretKey
object from the provided key specification (key material).- Specified by:
engineGenerateSecret
in classSecretKeyFactorySpi
- Parameters:
keySpec
- specification (key material) of the HMAC secret key- Returns:
- HMAC secret key
- Throws:
InvalidKeySpecException
- if the given key specification is inappropriate for this key factory to produce a HMAC secret key.
-
engineGetKeySpec
This method is currently unsupported.- Specified by:
engineGetKeySpec
in classSecretKeyFactorySpi
- Throws:
UnsupportedOperationException
- at all times, since this method is unsupported.
-
engineTranslateKey
This method is currently unsupported.- Specified by:
engineTranslateKey
in classSecretKeyFactorySpi
- Throws:
UnsupportedOperationException
- at all times, since this method is unsupported.
-