org.gcube.accounting.usagetracker.filter
Class Signature
java.lang.Object
org.gcube.accounting.usagetracker.filter.Signature
public class Signature
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Signature
public Signature()
calculateRFC2104HMAC
public static String calculateRFC2104HMAC(String data,
String key)
throws SignatureException
- Computes RFC 2104-compliant HMAC signature.
* @param data
The data to be signed.
- Parameters:
key - The signing key.
- Returns:
- The Base64-encoded RFC 2104-compliant HMAC signature.
- Throws:
SignatureException - when signature generation fails
Copyright © 2013. All Rights Reserved.