public final class OAuthRsaSigner implements OAuthSignerBeta
OAuth "RSA-SHA1" signature method.
The private key may be loaded using the utilities in SecurityUtils.
Implements
OAuthSignerConstructors
OAuthRsaSigner()
public OAuthRsaSigner()Fields
privateKey
public PrivateKey privateKeyPrivate key.
| Field Value | |
|---|---|
| Type | Description |
PrivateKey |
|
Methods
computeSignature(String signatureBaseString)
public String computeSignature(String signatureBaseString)Returns the signature computed from the given signature base string.
| Parameter | |
|---|---|
| Name | Description |
signatureBaseString |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
| Exceptions | |
|---|---|
| Type | Description |
GeneralSecurityException |
|
getSignatureMethod()
public String getSignatureMethod()Returns the signature method.
| Returns | |
|---|---|
| Type | Description |
String |
|