getEncryption() public method

public getEncryption ( ) : Emarref\Jwt\Encryption\EncryptionInterface
return Emarref\Jwt\Encryption\EncryptionInterface
Example #1
0
File: Jwt.php Project: 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()];
 }