@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()
OAuthSigner
getSignatureMethod
in interface OAuthSigner
public String computeSignature(String signatureBaseString) throws GeneralSecurityException
OAuthSigner
computeSignature
in interface OAuthSigner
GeneralSecurityException
- general security exceptionCopyright © 2011–2021 Google. All rights reserved.