PHP Class Jose\Algorithm\Signature\HMAC

It supports algorithms HS256, HS384 and HS512;.
Inheritance: implements Jose\Algorithm\SignatureAlgorithmInterface
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 Description
checkKey ( Jose\Object\JWKInterface $key )
getHashAlgorithm ( ) : string

Method Details

checkKey() protected method

protected checkKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface

getHashAlgorithm() abstract protected method

abstract protected getHashAlgorithm ( ) : string
return string

sign() public method

public sign ( Jose\Object\JWKInterface $key, $input )
$key Jose\Object\JWKInterface

verify() public method

public verify ( Jose\Object\JWKInterface $key, $input, $signature )
$key Jose\Object\JWKInterface