Emarref\Jwt\Verification\EncryptionVerifier::__construct PHP 메소드

__construct() 공개 메소드

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