- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- com.ibm.crypto.hdwrCCA.provider.HMACSHA1KeyFactory
-
public final class HMACSHA1KeyFactory extends javax.crypto.SecretKeyFactorySpi
This class builds a secret key for use with the HMACSHA1 algorithm.
-
-
Constructor Summary
Constructors Constructor Description HMACSHA1KeyFactory()
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.SecretKey
engineGenerateSecret(java.security.spec.KeySpec keySpec)
Generates a HMACSecretKey
object from the provided key specification (key material).protected java.security.spec.KeySpec
engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec)
This method is currently unsupported.protected javax.crypto.SecretKey
engineTranslateKey(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.InvalidKeySpecException
Generates a HMACSecretKey
object from the provided key specification (key material).- Specified by:
engineGenerateSecret
in 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:
engineGetKeySpec
in 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:
engineTranslateKey
in classjavax.crypto.SecretKeyFactorySpi
- Throws:
java.lang.UnsupportedOperationException
- at all times, since this method is unsupported.
-
-