|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface OAuth1SignatureMethod
An interface representing the OAuth signature method.
| Method Summary | |
|---|---|
String |
name()
Returns the name of this signature method, as negotiated through the OAuth protocol. |
String |
sign(String baseString,
OAuth1Secrets secrets)
Signs the data using the supplied secret(s). |
boolean |
verify(String elements,
OAuth1Secrets secrets,
String signature)
Verifies the signature for the data using the supplied secret(s). |
| Method Detail |
|---|
String name()
String sign(String baseString,
OAuth1Secrets secrets)
throws InvalidSecretException
baseString - a String that contains the request baseString to be signed.secrets - the secret(s) to use to sign the data.
String that contains the signature.
InvalidSecretException - if a supplied secret is not valid.
boolean verify(String elements,
OAuth1Secrets secrets,
String signature)
throws InvalidSecretException
elements - a String that contains the request elements to be verified.secrets - the secret(s) to use to verify the signature.signature - a String that contains the signature to be verified.
InvalidSecretException - if a supplied secret is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||