@Beta public final class OAuthRsaSigner extends Object implements OAuthSigner
Beta "RSA-SHA1" signature method.
The private key may be loaded using the utilities in SecurityUtils.
| Modifier and Type | Field and Description |
|---|---|
PrivateKey |
privateKey
Private key.
|
| Constructor and Description |
|---|
OAuthRsaSigner() |
| 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.
|
public PrivateKey privateKey
public String getSignatureMethod()
OAuthSignergetSignatureMethod in interface OAuthSignerpublic String computeSignature(String signatureBaseString) throws GeneralSecurityException
OAuthSignercomputeSignature in interface OAuthSignerGeneralSecurityException - general security exceptionCopyright © 2011–2021 Google. All rights reserved.