[ class tree: core ] [ index: core ] [ all elements ]

Class: OAuthSignatureMethod

Source Location: /zp-extensions/common/oAuth/OAuth.php

Class OAuthSignatureMethod

Class Overview

A class for implementing a Signature Method

See section 9 ("Signing Requests") in the spec

Located in /zp-extensions/common/oAuth/OAuth.php [line 59]



		
				Author(s):
		
API Tags:
Abstract:  

Methods

[ Top ]
Descendants
Child Class Description
OAuthSignatureMethod_HMAC_SHA1 The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty.
OAuthSignatureMethod_PLAINTEXT The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS. It does not use the Signature Base String.
OAuthSignatureMethod_RSA_SHA1 The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in

[ Top ]
Method Summary
string   build_signature()   Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
bool   check_signature()   Verifies that a given signature is correct
string   get_name()   Needs to return the name of the Signature Method (ie HMAC-SHA1)

[ Top ]
Methods
build_signature  [line 76]

  string build_signature( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token  )

Build up the signature NOTE: The output of this function MUST NOT be urlencoded.

the encoding is handled in OAuthRequest when the final request is serialized

Parameters:
OAuthRequest   $request: 
OAuthConsumer   $consumer: 
OAuthToken   $token: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
check_signature  [line 86]

  bool check_signature( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token, string $signature  )

Verifies that a given signature is correct

Parameters:
OAuthRequest   $request: 
OAuthConsumer   $consumer: 
OAuthToken   $token: 
string   $signature: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
get_name  [line 64]

  string get_name( )

Needs to return the name of the Signature Method (ie HMAC-SHA1)


API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:40 +0200 by phpDocumentor 1.4.3