Class HmacKeyManager


  • public final class HmacKeyManager
    extends java.lang.Object
    This key manager generates new HmacKey keys and produces new instances of PrfHmacJce.
    • Method Detail

      • register

        public static void register​(boolean newKeyAllowed)
                             throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • hmacSha256HalfDigestTemplate

        public static final KeyTemplate hmacSha256HalfDigestTemplate()
        Returns:
        A KeyTemplate that generates new instances of HMAC keys with the following parameters:
      • hmacSha256Template

        public static final KeyTemplate hmacSha256Template()
        Returns:
        A KeyTemplate that generates new instances of HMAC keys with the following parameters:
      • hmacSha512HalfDigestTemplate

        public static final KeyTemplate hmacSha512HalfDigestTemplate()
        Returns:
        A KeyTemplate that generates new instances of HMAC keys with the following parameters:
      • hmacSha512Template

        public static final KeyTemplate hmacSha512Template()
        Returns:
        A KeyTemplate that generates new instances of HMAC keys with the following parameters: