What is the Java equivalent of http://php.net/manual/en/function.hash-hmac.php ?
I need to specify both the data and the secret key to generate a SHA512 hash.
Best I've found so far is http://commons.apache.org/codec/apidocs/org/apache/commons/codec/digest/DigestUtils.html#sha512Hex(java.lang.String) but how do I specify the key?