Class HMACSHA384KeyFactory


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

      Constructors 
      Constructor Description
      HMACSHA384KeyFactory()
      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 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

      • HMACSHA384KeyFactory

        public HMACSHA384KeyFactory()
        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.