资 源 简 介
This project provides an implementation of javax.crypto.SecretKey, which can be used as the seed for HMAC-MD5 message authentication. HMAC-MD5 authentication is what Google Code uses to authenticate its web hook messages sent to projects after each commit to subversion.
Use of this SecretKey implementation allows you to verify your received web hook messages in Java. A complete example of how to use this SecretKey implementation is provided below.
```
package com.google.code.webhooks.examples;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.security.KeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import javax.crypto.Mac;
import javax.crypto.SecretKey;
import javax.servlet.ServletException;
import javax.