Class OAuthHmacSha256Signer (1.36.0)

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
Name Description
clientSecret String

Methods

computeSignature(String signatureBaseString)

public String computeSignature(String signatureBaseString)

Returns the signature computed from the given signature base string.

Parameter
Name Description
signatureBaseString String
Returns
Type Description
String
Exceptions
Type Description
GeneralSecurityException

getSignatureMethod()

public String getSignatureMethod()

Returns the signature method.

Returns
Type Description
String

setTokenSecret(String tokenSecret)

public void setTokenSecret(String tokenSecret)
Parameter
Name Description
tokenSecret String