PHP Class Jose\Algorithm\Signature\HMAC

It supports algorithms HS256, HS384 and HS512;.
Inheritance: implements Jose\Algorithm\SignatureAlgorithmInterface
Afficher le fichier Open project: spomky-labs/jose

Méthodes publiques

Méthode Description
sign ( Jose\Object\JWKInterface $key, $input )
verify ( Jose\Object\JWKInterface $key, $input, $signature )

Méthodes protégées

Méthode Description
checkKey ( Jose\Object\JWKInterface $key )
getHashAlgorithm ( ) : string

Method Details

checkKey() protected méthode

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

getHashAlgorithm() abstract protected méthode

abstract protected getHashAlgorithm ( ) : string
Résultat string

sign() public méthode

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

verify() public méthode

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