org.gcube.accounting.usagetracker.filter
Class Signature

java.lang.Object
  extended by org.gcube.accounting.usagetracker.filter.Signature

public class Signature
extends Object


Constructor Summary
Signature()
           
 
Method Summary
static String calculateRFC2104HMAC(String data, String key)
          Computes RFC 2104-compliant HMAC signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signature

public Signature()
Method Detail

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.