|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.client.authn.oauth.OAuthRsaSha1Signer
public class OAuthRsaSha1Signer
Signs strings using RSA-SHA1.
| Constructor Summary | |
|---|---|
OAuthRsaSha1Signer(byte[] privateKeyBytes)
Sets the RSA-SHA1 private key object used to sign this request. |
|
OAuthRsaSha1Signer(java.security.PrivateKey privateKey)
Sets the RSA-SHA1 private key object used to sign this request. |
|
OAuthRsaSha1Signer(java.lang.String privateKeyString)
Sets the RSA-SHA1 private key object used to sign this request. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSignature(java.lang.String baseString,
OAuthParameters oauthParameters)
Signs the input string using the appropriate signature method. |
java.lang.String |
getSignatureMethod()
Gets the signature method for this specific implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuthRsaSha1Signer(java.security.PrivateKey privateKey)
throws OAuthException
privateKey - the PrivateKey to use to initialize
the signer.
OAuthException - if setting the private key fails
public OAuthRsaSha1Signer(java.lang.String privateKeyString)
throws OAuthException
privateKeyString - the Base-64 encoded private key string conforming
to the PKCS #8 standard.
OAuthException - if setting the private key fails
public OAuthRsaSha1Signer(byte[] privateKeyBytes)
throws OAuthException
privateKeyBytes - the Base-64 encoded private key conforming to the
PKCS #8 standard.
OAuthException - if setting the private key fails| Method Detail |
|---|
public java.lang.String getSignature(java.lang.String baseString,
OAuthParameters oauthParameters)
throws OAuthException
OAuthSigner
getSignature in interface OAuthSignerbaseString - the string to signoauthParameters - the parameters related to the OAuth request or
null
OAuthException - if signing the request failspublic java.lang.String getSignatureMethod()
OAuthSigner
getSignatureMethod in interface OAuthSigner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||