OAuthSigner@Beta public final class OAuthHmacSigner extends Object implements OAuthSigner
Beta "HMAC-SHA1" signature method.| Modifier and Type | Field | Description |
|---|---|---|
String |
clientSharedSecret |
Client-shared secret or
null for none. |
String |
tokenSharedSecret |
Token-shared secret or
null for none. |
| Constructor | Description |
|---|---|
OAuthHmacSigner() |
| 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.
|
public String clientSharedSecret
null for none.public String tokenSharedSecret
null for none.public String getSignatureMethod()
OAuthSignergetSignatureMethod in interface OAuthSignerpublic String computeSignature(String signatureBaseString) throws GeneralSecurityException
OAuthSignercomputeSignature in interface OAuthSignerGeneralSecurityException - general security exceptionCopyright © 2011–2019 Google. All rights reserved.