public final class PlaintextMethod extends Object implements OAuth1SignatureMethod
| Constructor and Description | 
|---|
PlaintextMethod()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public static final String NAME
public String name()
OAuth1SignatureMethodname in interface OAuth1SignatureMethodpublic 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.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.