com.ibm.crypto.hdwrCCA.provider

Class HMACSHA512KeyFactory

  • java.lang.Object
    • javax.crypto.SecretKeyFactorySpi
      • com.ibm.crypto.hdwrCCA.provider.HMACSHA512KeyFactory


  • public final class HMACSHA512KeyFactory
    extends javax.crypto.SecretKeyFactorySpi
    This class builds a secret key for use with the HMACSHA512 algorithm.
    • Constructor Summary

      Constructors 
      Constructor and Description
      HMACSHA512KeyFactory()
      Set the HMAC algorithm name and verify the JCE framework.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
      Generates a HMAC SecretKey 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HMACSHA512KeyFactory

        public HMACSHA512KeyFactory()
        Set the HMAC algorithm name and verify the JCE framework.
        Throws:
        java.lang.SecurityException - if unable to verify the JCE framework.
    • Method Detail

      • engineGenerateSecret

        protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec)
                                                       throws java.security.spec.InvalidKeySpecException
        Generates a HMAC SecretKey object from the provided key specification (key material).
        Specified by:
        engineGenerateSecret in class javax.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 class javax.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 class javax.crypto.SecretKeyFactorySpi
        Throws:
        java.lang.UnsupportedOperationException - at all times, since this method is unsupported.
� Portions Copyright 1997, 2022 IBM Corporation. All rights reserved. � Portions Copyright 1997, 2022, Oracle and/or its affiliates. All rights reserved.