|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.oauth1.signature.PlaintextMethod
public final class PlaintextMethod
An OAuth signature method that implements Plaintext.
| Field Summary | |
|---|---|
static String |
NAME
Method name. |
| Constructor Summary | |
|---|---|
PlaintextMethod()
|
|
| Method Summary | |
|---|---|
String |
name()
Returns the name of this signature method, as negotiated through the OAuth protocol. |
String |
sign(String baseString,
OAuth1Secrets secrets)
Generates the PLAINTEXT signature. |
boolean |
verify(String elements,
OAuth1Secrets secrets,
String signature)
Verifies the Plaintext signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public PlaintextMethod()
| Method Detail |
|---|
public String name()
OAuth1SignatureMethod
name in interface OAuth1SignatureMethod
public String sign(String baseString,
OAuth1Secrets secrets)
sign in interface OAuth1SignatureMethodbaseString - the OAuth elements to sign (ignored).secrets - the shared secrets used to sign the request.
public boolean verify(String elements,
OAuth1Secrets secrets,
String signature)
verify in interface OAuth1SignatureMethodelements - OAuth elements (ignored).secrets - the shared secrets for verifying the signature.signature - plaintext OAuth signature to be verified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||