PHP Класс PayPal\Auth\Oauth\OAuthServer

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$data_store
$signature_methods hi blaine
$timestamp_threshold
$version in seconds, five minutes

Открытые методы

Метод Описание
__construct ( $data_store )
add_signature_method ( $signature_method )
fetch_access_token ( &$request ) process an access_token request returns the access token on success
fetch_request_token ( &$request ) process a request_token request returns the request token on success
verify_request ( &$request ) verify an api call, checks all the parameters

Приватные методы

Метод Описание
check_nonce ( $consumer, $token, $nonce, $timestamp ) check that the nonce is not repeated
check_signature ( $request, $consumer, $token ) all-in-one function to check the signature on a request should guess the signature method appropriately
check_timestamp ( $timestamp ) check that the timestamp is new enough
get_consumer ( $request ) try to find the consumer for the provided request's consumer key
get_signature_method ( $request ) figure out the signature with some defaults
get_token ( $request, $consumer, $token_type = "access" ) try to find the token for the provided request's token key
get_version ( &$request ) version 1

Описание методов

__construct() публичный Метод

public __construct ( $data_store )

add_signature_method() публичный Метод

public add_signature_method ( $signature_method )

fetch_access_token() публичный Метод

process an access_token request returns the access token on success
public fetch_access_token ( &$request )

fetch_request_token() публичный Метод

process a request_token request returns the request token on success
public fetch_request_token ( &$request )

verify_request() публичный Метод

verify an api call, checks all the parameters
public verify_request ( &$request )

Описание свойств

$data_store защищенное свойство

protected $data_store

$signature_methods защищенное свойство

hi blaine
protected $signature_methods

$timestamp_threshold защищенное свойство

protected $timestamp_threshold

$version защищенное свойство

in seconds, five minutes
protected $version