com.google.api.client.auth.oauth
Class OAuthHmacSigner

java.lang.Object
  extended by com.google.api.client.auth.oauth.OAuthHmacSigner
All Implemented Interfaces:
OAuthSigner

public final class OAuthHmacSigner
extends Object
implements OAuthSigner

OAuth "HMAC-SHA1" signature method.

Since:
1.0
Author:
Yaniv Inbar

Field Summary
 String clientSharedSecret
          Client-shared secret or null for none.
 String tokenSharedSecret
          Token-shared secret or null for none.
 
Constructor Summary
OAuthHmacSigner()
           
 
Method Summary
 String computeSignature(String signatureBaseString)
          Returns the signature computed from the given signature base string.
 String getSignatureMethod()
          Returns the signature method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientSharedSecret

public String clientSharedSecret
Client-shared secret or null for none.


tokenSharedSecret

public String tokenSharedSecret
Token-shared secret or null for none.

Constructor Detail

OAuthHmacSigner

public OAuthHmacSigner()
Method Detail

getSignatureMethod

public String getSignatureMethod()
Description copied from interface: OAuthSigner
Returns the signature method.

Specified by:
getSignatureMethod in interface OAuthSigner

computeSignature

public String computeSignature(String signatureBaseString)
                        throws GeneralSecurityException
Description copied from interface: OAuthSigner
Returns the signature computed from the given signature base string.

Specified by:
computeSignature in interface OAuthSigner
Throws:
GeneralSecurityException - general security exception


Copyright © 2010-2011 Google. All Rights Reserved.