Package com.google.api.client.auth.oauth
Class OAuthRsaSigner
- java.lang.Object
-
- com.google.api.client.auth.oauth.OAuthRsaSigner
-
- All Implemented Interfaces:
OAuthSigner
@Beta public final class OAuthRsaSigner extends Object implements OAuthSigner
Beta
OAuth"RSA-SHA1"signature method.The private key may be loaded using the utilities in
SecurityUtils.- Since:
- 1.0
- Author:
- Yaniv Inbar
-
-
Field Summary
Fields Modifier and Type Field Description PrivateKeyprivateKeyPrivate key.
-
Constructor Summary
Constructors Constructor Description OAuthRsaSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcomputeSignature(String signatureBaseString)Returns the signature computed from the given signature base string.StringgetSignatureMethod()Returns the signature method.
-
-
-
Field Detail
-
privateKey
public PrivateKey privateKey
Private key.
-
-
Method Detail
-
getSignatureMethod
public String getSignatureMethod()
Description copied from interface:OAuthSignerReturns the signature method.- Specified by:
getSignatureMethodin interfaceOAuthSigner
-
computeSignature
public String computeSignature(String signatureBaseString) throws GeneralSecurityException
Description copied from interface:OAuthSignerReturns the signature computed from the given signature base string.- Specified by:
computeSignaturein interfaceOAuthSigner- Throws:
GeneralSecurityException- general security exception
-
-