com.google.api.client.auth
Class HmacSha
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.