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 java.lang.Object implements OAuthSigner
Beta
OAuth"RSA-SHA1"
signature method.The private key may be loaded using the utilities in
SecurityUtils
.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description java.security.PrivateKey
privateKey
Private key.
-
Constructor Summary
Constructors Constructor Description OAuthRsaSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
computeSignature(java.lang.String signatureBaseString)
Returns the signature computed from the given signature base string.java.lang.String
getSignatureMethod()
Returns the signature method.
-
-
-
Method Detail
-
getSignatureMethod
public java.lang.String getSignatureMethod()
Description copied from interface:OAuthSigner
Returns the signature method.- Specified by:
getSignatureMethod
in interfaceOAuthSigner
-
computeSignature
public java.lang.String computeSignature(java.lang.String signatureBaseString) throws java.security.GeneralSecurityException
Description copied from interface:OAuthSigner
Returns the signature computed from the given signature base string.- Specified by:
computeSignature
in interfaceOAuthSigner
- Throws:
java.security.GeneralSecurityException
- general security exception
-
-