public final class OAuthHmacSha256Signer extends Object implements OAuthSigner
"HMAC-SHA256"
signature method.Constructor and Description |
---|
OAuthHmacSha256Signer(String clientSecret) |
Modifier and Type | Method and Description |
---|---|
String |
computeSignature(String signatureBaseString)
Returns the signature computed from the given signature base string.
|
String |
getSignatureMethod()
Returns the signature method.
|
void |
setTokenSecret(String tokenSecret) |
public OAuthHmacSha256Signer(String clientSecret)
public void setTokenSecret(String tokenSecret)
public String getSignatureMethod()
OAuthSigner
getSignatureMethod
in interface OAuthSigner
public String computeSignature(String signatureBaseString) throws GeneralSecurityException
OAuthSigner
computeSignature
in interface OAuthSigner
GeneralSecurityException
- general security exceptionCopyright © 2011–2022 Google. All rights reserved.