- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- com.ibm.crypto.hdwrCCA.provider.HMACSHA256KeyFactory
-
public final class HMACSHA256KeyFactory extends javax.crypto.SecretKeyFactorySpiThis class builds a secret key for use with the HMACSHA256 algorithm.
-
-
Constructor Summary
Constructors Constructor Description HMACSHA256KeyFactory()Set the HMAC algorithm name and verify the JCE framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.crypto.SecretKeyengineGenerateSecret(java.security.spec.KeySpec keySpec)Generates a HMACSecretKeyobject from the provided key specification (key material).protected java.security.spec.KeySpecengineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec)This method is currently unsupported.protected javax.crypto.SecretKeyengineTranslateKey(javax.crypto.SecretKey key)This method is currently unsupported.
-
-
-
Method Detail
-
engineGenerateSecret
protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecExceptionGenerates a HMACSecretKeyobject from the provided key specification (key material).- Specified by:
engineGenerateSecretin classjavax.crypto.SecretKeyFactorySpi- Parameters:
keySpec- specification (key material) of the HMAC secret key- Returns:
- HMAC secret key
- Throws:
java.security.spec.InvalidKeySpecException- if the given key specification is inappropriate for this key factory to produce a HMAC secret key.
-
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec)This method is currently unsupported.- Specified by:
engineGetKeySpecin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.lang.UnsupportedOperationException- at all times, since this method is unsupported.
-
engineTranslateKey
protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key)
This method is currently unsupported.- Specified by:
engineTranslateKeyin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.lang.UnsupportedOperationException- at all times, since this method is unsupported.
-
-