Class yii\authclient\signature\HmacSha1

Inheritanceyii\authclient\signature\HmacSha1 » yii\authclient\signature\BaseMethod » yii\base\Object
Available since version2.0

HmacSha1 represents 'HMAC-SHA1' signature method.

Note: This class requires PHP "Hash" extension(http://php.net/manual/en/book.hash.php).

Public Methods

Hide inherited methods

MethodDescriptionDefined By
generateSignature() Generates OAuth request signature. yii\authclient\signature\HmacSha1
getName() Return the canonical name of the Signature Method. yii\authclient\signature\HmacSha1
init() yii\authclient\signature\HmacSha1
verify() Verifies given OAuth request. yii\authclient\signature\BaseMethod

Method Details

generateSignature() public method

Generates OAuth request signature.

public string generateSignature ( $baseString, $key )
$baseString string

Signature base string.

$key string

Signature key.

return string

Signature string.

getName() public method

Return the canonical name of the Signature Method.

public string getName ( )
return string

Method name.

init() public method

public void init ( )