parse() public method

public parse ( string $expected, string $algorithm ) : Mdanter\Ecc\Crypto\Signature\SignatureInterface
$expected string
$algorithm string
return Mdanter\Ecc\Crypto\Signature\SignatureInterface
示例#1
0
 /**
  * @test
  *
  * @dataProvider algorithms
  *
  * @covers \Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer::parse
  *
  * @uses \Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer::__construct
  */
 public function parseShouldExtractASignatureBasedOnTheHash(string $algorithm)
 {
     $serializer = new SignatureSerializer($this->mathInterface);
     self::assertEquals($this->signature, $serializer->parse($this->signatureData[$algorithm], $algorithm));
 }