OAuthSigner
@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 | Description |
---|---|---|
PrivateKey |
privateKey |
Private key.
|
Constructor | Description |
---|---|
OAuthRsaSigner() |
Modifier and Type | Method | 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–2019 Google. All rights reserved.