|
|||||||||
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()
Constructor for OAuthRsaSha1Signer . |
|
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. |
void |
setPrivateKey(java.security.PrivateKey privateKey)
Sets the PrivateKey used to sign requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuthRsaSha1Signer()
OAuthRsaSha1Signer
. This form of the constructor
does not set the private key, so be sure to call
setPrivateKey(PrivateKey)
before signing requests.
public OAuthRsaSha1Signer(java.security.PrivateKey privateKey) throws OAuthException
privateKey
- the PrivateKey
to use to initialize
the signer.
OAuthException
- if setting the private key failspublic 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 failspublic OAuthRsaSha1Signer(byte[] privateKeyBytes) throws OAuthException
privateKeyBytes
- the Base-64 encoded private key conforming to the
PKCS #8 standard.
OAuthException
- if setting the private key failsMethod Detail |
---|
public void setPrivateKey(java.security.PrivateKey privateKey) throws OAuthException
PrivateKey
used to sign requests.
privateKey
-
OAuthException
- if the private key is null.public java.lang.String getSignature(java.lang.String baseString, OAuthParameters oauthParameters) throws OAuthException
OAuthSigner
getSignature
in interface OAuthSigner
baseString
- 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 |