java API
http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html
example :
https://arvindersehinsra.wordpress.com/2012/03/14/hmacsha256-encryption-java-example/
第三方API
https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/digest/HmacUtils.html