Class OAuthHmacSha256Signer (1.34.1)

public final class OAuthHmacSha256Signer implements OAuthSigner

OAuth "HMAC-SHA256" signature method.

Inheritance

java.lang.Object > OAuthHmacSha256Signer

Implements

OAuthSigner

Constructors

OAuthHmacSha256Signer(String clientSecret)

public OAuthHmacSha256Signer(String clientSecret)
Parameter
NameDescription
clientSecretString

Methods

computeSignature(String signatureBaseString)

public String computeSignature(String signatureBaseString)

Returns the signature computed from the given signature base string.

Parameter
NameDescription
signatureBaseStringString
Returns
TypeDescription
String
Exceptions
TypeDescription
GeneralSecurityException

getSignatureMethod()

public String getSignatureMethod()

Returns the signature method.

Returns
TypeDescription
String

setTokenSecret(String tokenSecret)

public void setTokenSecret(String tokenSecret)
Parameter
NameDescription
tokenSecretString