PHP Class QueryAuth\Signature

Inheritance: implements queryauth\SignatureInterface
Datei anzeigen Open project: jeremykendall/query-auth

Public Methods

Method Description
createSignature ( QueryAuth\Request\RequestInterface $request, QueryAuth\Credentials\CredentialsInterface $credentials ) Creates signature

Protected Methods

Method Description
getAbsolutePath ( string $path ) : string Ensures that path is absolute
normalizeParameters ( array $params ) : string Normalizes request parameters

Method Details

createSignature() public method

{@inheritDoc}
public createSignature ( QueryAuth\Request\RequestInterface $request, QueryAuth\Credentials\CredentialsInterface $credentials )
$request QueryAuth\Request\RequestInterface
$credentials QueryAuth\Credentials\CredentialsInterface

getAbsolutePath() protected method

Ensures that path is absolute
protected getAbsolutePath ( string $path ) : string
$path string Request path
return string Absolute request path

normalizeParameters() protected method

Normalizes request parameters
protected normalizeParameters ( array $params ) : string
$params array Request parameters
return string Normalized, rawurlencoded parameter string