Emarref\Jwt\Verification\Context::getEncryption PHP 메소드

getEncryption() 공개 메소드

public getEncryption ( ) : Emarref\Jwt\Encryption\EncryptionInterface
리턴 Emarref\Jwt\Encryption\EncryptionInterface
    public function getEncryption()
    {
        return $this->encryption;
    }

Usage Example

예제 #1
0
파일: Jwt.php 프로젝트: emarref/jwt
 /**
  * @param Verification\Context $context
  * @return Verification\VerifierInterface[]
  */
 protected function getVerifiers(Verification\Context $context)
 {
     return [new Verification\EncryptionVerifier($context->getEncryption(), $this->encoder), new Verification\AudienceVerifier($context->getAudience()), new Verification\ExpirationVerifier(), new Verification\IssuerVerifier($context->getIssuer()), new Verification\SubjectVerifier($context->getSubject()), new Verification\NotBeforeVerifier()];
 }