PHP Class Horde_Oauth_Request, horde

Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_method
$_params
$_url

Méthodes publiques

Méthode Description
__construct ( $url, $params = [], $method = 'POST' )
buildAuthorizationHeader ( $realm = '' )
buildHttpQuery ( ) Get a query string suitable for use in a URL or as POST data.
getSignatureBaseString ( ) Returns the signable string of this request
sign ( $signatureMethod, $consumer, $token = null ) : unknown_type Sign this request in accordance with OAuth

Méthodes protégées

Méthode Description
_generateNonce ( ) Generate a nonce.
_getNormalizedHttpMethod ( ) Uppercases the HTTP method
_getNormalizedUrl ( ) Parse the url and rebuilds it to be scheme://host/path
_getSignableParameters ( ) : string Returns the normalized parameters of the request

Method Details

__construct() public méthode

public __construct ( $url, $params = [], $method = 'POST' )

_generateNonce() protected static méthode

Generate a nonce.
protected static _generateNonce ( )

_getNormalizedHttpMethod() protected méthode

Uppercases the HTTP method
protected _getNormalizedHttpMethod ( )

_getNormalizedUrl() protected méthode

Parse the url and rebuilds it to be scheme://host/path
protected _getNormalizedUrl ( )

_getSignableParameters() protected méthode

This will be all parameters except oauth_signature, sorted first by key, and if there are duplicate keys, then by value. The returned string will be all the key=value pairs concatenated by &.
protected _getSignableParameters ( ) : string
Résultat string

buildAuthorizationHeader() public méthode

public buildAuthorizationHeader ( $realm = '' )

buildHttpQuery() public méthode

Get a query string suitable for use in a URL or as POST data.
public buildHttpQuery ( )

getSignatureBaseString() public méthode

The base string is defined as the method, the url and the parameters (normalized), each urlencoded and concatenated with &.

sign() public méthode

Sign this request in accordance with OAuth
public sign ( $signatureMethod, $consumer, $token = null ) : unknown_type
$signatureMethod
$consumer
$token
Résultat unknown_type

Property Details

$_method protected_oe property

protected $_method

$_params protected_oe property

protected $_params

$_url protected_oe property

protected $_url