PHP Class Jose\Algorithm\Signature\HMAC
It supports algorithms HS256, HS384 and HS512;.
Mostra file
Open project: spomky-labs/jose
Public Methods
Method |
Description |
|
sign ( Jose\Object\JWKInterface $key, $input ) |
|
|
verify ( Jose\Object\JWKInterface $key, $input, $signature ) |
|
|
Protected Methods
Method Details
checkKey()
protected method
protected checkKey ( Jose\Object\JWKInterface $key ) |
$key |
Jose\Object\JWKInterface |
|
getHashAlgorithm()
abstract protected method
public sign ( Jose\Object\JWKInterface $key, $input ) |
$key |
Jose\Object\JWKInterface |
|
public verify ( Jose\Object\JWKInterface $key, $input, $signature ) |
$key |
Jose\Object\JWKInterface |
|