     KeyGenerator keyGenerator = KeyGenerator.getInstance(MAC_ALGORITHM);         SecretKey macKey = keyGenerator.generateKey();         Mac mac = Mac.getInstance(MAC_ALGORITHM);         mac.init(macKey);         byte[] 