Class HMACSHA224KeyFactory
java.lang.Object
javax.crypto.SecretKeyFactorySpi
com.ibm.crypto.hdwrCCA.provider.HMACSHA224KeyFactory
This class builds a secret key for use with the HMACSHA224 algorithm.
-
Constructor Summary
ConstructorsConstructorDescriptionSet the HMAC algorithm name and verify the JCE framework. -
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKeyengineGenerateSecret(KeySpec keySpec) Generates a HMACSecretKeyobject from the provided key specification (key material).protected KeySpecengineGetKeySpec(SecretKey key, Class keySpec) This method is currently unsupported.protected SecretKeyThis method is currently unsupported.
-
Constructor Details
-
HMACSHA224KeyFactory
public HMACSHA224KeyFactory()Set the HMAC algorithm name and verify the JCE framework.- Throws:
SecurityException- if unable to verify the JCE framework.
-
-
Method Details
-
engineGenerateSecret
Generates a HMACSecretKeyobject from the provided key specification (key material).- Specified by:
engineGenerateSecretin 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:
engineGetKeySpecin classSecretKeyFactorySpi- Throws:
UnsupportedOperationException- at all times, since this method is unsupported.
-
engineTranslateKey
This method is currently unsupported.- Specified by:
engineTranslateKeyin classSecretKeyFactorySpi- Throws:
UnsupportedOperationException- at all times, since this method is unsupported.
-