com.google.api.client.auth
Class HmacSha

java.lang.Object
  extended by com.google.api.client.auth.HmacSha

public final class HmacSha
extends Object

Utility methods for "HMAC-SHA1" signing method.

Since:
1.0
Author:
Yaniv Inbar

Method Summary
static String sign(String key, String data)
          Signs the given data using the given secret key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sign

public static String sign(String key,
                          String data)
                   throws GeneralSecurityException
Signs the given data using the given secret key.

Throws:
GeneralSecurityException - general security exception


Copyright © 2010-2011 Google. All Rights Reserved.