Emarref\Jwt\Verification\EncryptionVerifier::__construct PHP Method

__construct() public method

public __construct ( Emarref\Jwt\Encryption\EncryptionInterface $encryption, Emarref\Jwt\Encoding\EncoderInterface $encoder )
$encryption Emarref\Jwt\Encryption\EncryptionInterface
$encoder Emarref\Jwt\Encoding\EncoderInterface
    public function __construct(Encryption\EncryptionInterface $encryption, Encoding\EncoderInterface $encoder)
    {
        $this->encryption = $encryption;
        $this->encoder = $encoder;
        $this->signer = new Signature\Jws($this->encryption, $this->encoder);
    }

Usage Example

コード例 #1
0
 public function __construct(Encryption\EncryptionInterface $encryption, Encoding\EncoderInterface $encoder, SignerInterface $signer)
 {
     parent::__construct($encryption, $encoder);
     $this->signer = $signer;
 }
EncryptionVerifier