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
Show file Open project: lcobucci/jwt

Public Methods

Method 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 method

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 method

public static create ( ) : Ecdsa
return Ecdsa

createHash() public method

public createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
$payload string
$key Lcobucci\JWT\Signer\Key
return string

doVerify() public method

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

getAlgorithm() abstract public method

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