CommonSense PHP API Library
OAuthSignatureMethodRsaSha1 Class Reference
Inheritance diagram for OAuthSignatureMethodRsaSha1:
Collaboration diagram for OAuthSignatureMethodRsaSha1:

List of all members.

Public Member Functions

 getName ()
 buildSignature ($request, $consumer, $token)
 checkSignature ($request, $consumer, $token, $signature)

Protected Member Functions

 fetchPublicCert (&$request)
 fetchPrivateCert (&$request)

Detailed Description

The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5. It is assumed that the Consumer has provided its RSA public key in a verified way to the Service Provider, in a manner which is beyond the scope of this specification.

  • Chapter 9.3 ("RSA-SHA1")

Member Function Documentation

OAuthSignatureMethodRsaSha1::buildSignature ( request,
consumer,
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
Returns:
string

Reimplemented from OAuthSignatureMethod.

OAuthSignatureMethodRsaSha1::checkSignature ( request,
consumer,
token,
signature 
)

Verifies that a given signature is correct.

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

Reimplemented from OAuthSignatureMethod.

OAuthSignatureMethodRsaSha1::fetchPrivateCert ( &$  request) [abstract, protected]
OAuthSignatureMethodRsaSha1::fetchPublicCert ( &$  request) [abstract, protected]

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

Returns:
string

Reimplemented from OAuthSignatureMethod.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables