Elgg
Version 4.3
|
Provides a factory for HMAC objects. More...
Public Member Functions | |
__construct (SiteSecret $secret, Crypto $crypto) | |
Constructor. More... | |
getHmac ($data, $algo= 'sha256', $key= '') | |
Get an HMAC token builder/validator object. More... | |
Provides a factory for HMAC objects.
Definition at line 9 of file HmacFactory.php.
Elgg\Security\HmacFactory::__construct | ( | SiteSecret | $secret, |
Crypto | $crypto | ||
) |
Constructor.
Definition at line 27 of file HmacFactory.php.
Elgg\Security\HmacFactory::getHmac | ( | $data, | |
$algo = 'sha256' , |
|||
$key = '' |
|||
) |
Get an HMAC token builder/validator object.
mixed | $data | HMAC data or serializable data |
string | $algo | Hash algorithm |
string | $key | Optional key (default uses site secret) |
Definition at line 41 of file HmacFactory.php.