Class JwtHmacKeyManager


  • public final class JwtHmacKeyManager
    extends java.lang.Object
    This key manager generates new JwtHmacKey keys and produces new instances of JwtHmacKeyManager.JwtHmac.
    • Method Detail

      • register

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

        public static final KeyTemplate hs256Template()
        Returns a KeyTemplate that generates new instances of HS256 256-bit keys.
      • hs384Template

        public static final KeyTemplate hs384Template()
        Returns a KeyTemplate that generates new instances of HS384 384-bit keys.
      • hs512Template

        public static final KeyTemplate hs512Template()
        Returns a KeyTemplate that generates new instances of HS512 512-bit keys.