PHP Class Lcobucci\JWT\Signer\Ecdsa

Since: 2.1.0
Author: Luís Otávio Cobucci Oblonczyk ([email protected])
Inheritance: extends Lcobucci\JWT\Signer\BaseSigner
Afficher le fichier Open project: lcobucci/jwt

Méthodes publiques

Méthode Description
__construct ( Lcobucci\JWT\Signer\Ecdsa\EccAdapter $adapter, KeyParser $keyParser )
create ( ) : Ecdsa
createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
doVerify ( string $expected, string $payload, Lcobucci\JWT\Signer\Key $key ) : boolean
getAlgorithm ( ) : string Returns the name of algorithm to be used to create the signing hash

Method Details

__construct() public méthode

public __construct ( Lcobucci\JWT\Signer\Ecdsa\EccAdapter $adapter, KeyParser $keyParser )
$adapter Lcobucci\JWT\Signer\Ecdsa\EccAdapter
$keyParser Lcobucci\JWT\Signer\Ecdsa\KeyParser

create() public static méthode

public static create ( ) : Ecdsa
Résultat Ecdsa

createHash() public méthode

public createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
$payload string
$key Lcobucci\JWT\Signer\Key
Résultat string

doVerify() public méthode

public doVerify ( string $expected, string $payload, Lcobucci\JWT\Signer\Key $key ) : boolean
$expected string
$payload string
$key Lcobucci\JWT\Signer\Key
Résultat boolean

getAlgorithm() abstract public méthode

Returns the name of algorithm to be used to create the signing hash
abstract public getAlgorithm ( ) : string
Résultat string