Update docblock

This commit is contained in:
Alex Bilbie 2014-12-27 21:05:51 +00:00
parent 7375a348c6
commit b50fbff1e3

View File

@ -118,6 +118,12 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null;
}
/**
* Prevent timing attack
* @param string $knownString
* @param string $userString
* @return bool
*/
private function hash_equals($knownString, $userString)
{
if (!function_exists('hash_equals')) {