List of usage examples for org.apache.commons.codec.digest HmacUtils hmacSha384
public static byte[] hmacSha384(final String key, final String valueToDigest)
From source file:com.vmware.o11n.plugin.crypto.service.CryptoDigestService.java
/** * HmacSHA384//from www . jav a 2 s. co m * * @param keyB64 Secret key Base64 encoded * @param dataB64 Data to sign Base64 encoded * @return HmacSha384 MAC for the given key and data Base64 encoded */ public String hmacSha384(String keyB64, String dataB64) { validateB64(keyB64); validateB64(dataB64); final byte[] key = Base64.decodeBase64(keyB64); final byte[] data = Base64.decodeBase64(dataB64); return Base64.encodeBase64String(HmacUtils.hmacSha384(key, data)); }