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()
OAuthSignatureMethod
name
in interface OAuthSignatureMethod
public String sign(String elements, OAuthSecrets secrets)
sign
in interface OAuthSignatureMethod
elements
- 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 OAuthSignatureMethod
elements
- OAuth elements (ignored).secrets
- the shared secrets for verifying the signature.signature
- plaintext OAuth signature to be verified.Copyright © 2013 Oracle Corporation. All rights reserved.