public static final KeyTemplate hs512Template() {
    return exceptionIsBug(
        () ->
            KeyTemplate.createFrom(
                JwtHmacParameters.builder()
                    .setKeySizeBytes(64)
                    .setKidStrategy(JwtHmacParameters.KidStrategy.IGNORED)
                    .setAlgorithm(JwtHmacParameters.Algorithm.HS512)
                    .build()));
  }
Returns a {@link KeyTemplate} that generates new instances of HS512 512-bit keys.
java_src/src/main/java/com/google/crypto/tink/jwt/JwtHmacKeyManager.java