| Package | com.yahoo.oauth |
| Class | public class OAuthSignatureMethod |
| Implements | IOAuthSignatureMethod |
| Subclasses | OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_PLAINTEXT |
OAuthSignatureMethod_HMAC_SHA1 or
OAuthSignatureMethod_PLAINTEXT, or your own
that overrides the methods of this class.
| Property | Defined by | ||
|---|---|---|---|
| name : String [read-only]
The name of the signature method.
| OAuthSignatureMethod | ||
| Property | Defined by | ||
|---|---|---|---|
| $name : String
The name of the signature method.
| OAuthSignatureMethod | ||
| Method | Defined by | ||
|---|---|---|---|
|
Class constructor.
| OAuthSignatureMethod | ||
|
buildSignature(request:OAuthRequest):String
Signs the request.
| OAuthSignatureMethod | ||
|
checkSignature(signature:String, request:OAuthRequest):Boolean
Validates the given signature against a generated signature from the request.
| OAuthSignatureMethod | ||
| $name | property |
protected var $name:StringThe name of the signature method.
| name | property |
name:String [read-only]The name of the signature method.
Implementation public function get name():String
| OAuthSignatureMethod | () | constructor |
public function OAuthSignatureMethod()Class constructor.
Creates a new OAuthSignaureMethod object.
| buildSignature | () | method |
public function buildSignature(request:OAuthRequest):StringSigns the request.
Parametersrequest:OAuthRequest |
String |
| checkSignature | () | method |
public function checkSignature(signature:String, request:OAuthRequest):BooleanValidates the given signature against a generated signature from the request.
Parameterssignature:String — The signature string to be verified.
|
|
request:OAuthRequest — The OAuthRequest to sign and compare against the provided signature.
|
Boolean — Returns true if the signature matches the signature built from the request.
|