PHP Class Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer

Since: 4.0.0
Author: Luís Otávio Cobucci Oblonczyk ([email protected])
Show file Open project: lcobucci/jwt Class Usage Examples

Public Methods

Method Description
__construct ( Mdanter\Ecc\Math\GmpMathInterface $mathInterface )
parse ( string $expected, string $algorithm ) : Mdanter\Ecc\Crypto\Signature\SignatureInterface
serialize ( Mdanter\Ecc\Crypto\Signature\SignatureInterface $signature, string $algorithm ) : string

Private Methods

Method Description
addPadding ( GMP $point, integer $length ) : string

Method Details

__construct() public method

public __construct ( Mdanter\Ecc\Math\GmpMathInterface $mathInterface )
$mathInterface Mdanter\Ecc\Math\GmpMathInterface

parse() public method

public parse ( string $expected, string $algorithm ) : Mdanter\Ecc\Crypto\Signature\SignatureInterface
$expected string
$algorithm string
return Mdanter\Ecc\Crypto\Signature\SignatureInterface

serialize() public method

public serialize ( Mdanter\Ecc\Crypto\Signature\SignatureInterface $signature, string $algorithm ) : string
$signature Mdanter\Ecc\Crypto\Signature\SignatureInterface
$algorithm string
return string