public class PLAINTEXT extends Object implements OAuthSignatureMethod
| Constructor and Description |
|---|
PLAINTEXT() |
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the name of this signature method, as negotiated through the
OAuth protocol.
|
String |
sign(String elements,
OAuthSecrets secrets)
Generates the PLAINTEXT signature.
|
boolean |
verify(String elements,
OAuthSecrets secrets,
String signature)
Verifies the PLAINTEXT signature.
|
public static final String NAME
public String name()
OAuthSignatureMethodname in interface OAuthSignatureMethodpublic String sign(String elements, OAuthSecrets secrets)
sign in interface OAuthSignatureMethodelements - the OAuth elements to sign (ignored).secrets - the shared secrets used to sign the request.public boolean verify(String elements, OAuthSecrets secrets, String signature)
verify in interface OAuthSignatureMethodelements - OAuth elements (ignored).secrets - the shared secrets for verifying the signature.signature - plaintext OAuth signature to be verified.Copyright © 2016 Oracle Corporation. All rights reserved.