Package com.google.api.client.auth.oauth
Class OAuthHmacSigner
- java.lang.Object
-
- com.google.api.client.auth.oauth.OAuthHmacSigner
-
- All Implemented Interfaces:
OAuthSigner
@Beta public final class OAuthHmacSigner extends Object implements OAuthSigner
Beta
OAuth"HMAC-SHA1"
signature method.- Since:
- 1.0
- Author:
- Yaniv Inbar
-
-
Field Summary
Fields Modifier and Type Field Description String
clientSharedSecret
Client-shared secret ornull
for none.String
tokenSharedSecret
Token-shared secret ornull
for none.
-
Constructor Summary
Constructors Constructor Description OAuthHmacSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
computeSignature(String signatureBaseString)
Returns the signature computed from the given signature base string.String
getSignatureMethod()
Returns the signature method.
-
-
-
Method Detail
-
getSignatureMethod
public String getSignatureMethod()
Description copied from interface:OAuthSigner
Returns the signature method.- Specified by:
getSignatureMethod
in interfaceOAuthSigner
-
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 interfaceOAuthSigner
- Throws:
GeneralSecurityException
- general security exception
-
-