code: public Mac getMac(final @NotNull String alias) {
          try {
              Mac mac = Mac.getInstance(getAlgorithm(alias));
              mac.init(new SecretKeySpec(secret, mac.getAlgorithm()));
  
              return mac;
          } catch (NoSuchAlgorithmException | InvalidKeyException e) {
              throw new RuntimeException(e);
          }
      }
docs: Creates a new Message Authentication Code
  @param alias algorithm to use e.g.: HmacSHA256
  @return Mac implementation