Inheritance: extends Jose\Algorithm\JWAInterface
Beispiel #1
0
 /**
  * @param \Jose\Algorithm\KeyEncryptionAlgorithmInterface     $key_encryption_algorithm
  * @param \Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm
  * @param \Jose\Object\JWKInterface                           $recipient_key
  */
 private function checkKeys(Algorithm\KeyEncryptionAlgorithmInterface $key_encryption_algorithm, Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, Object\JWKInterface $recipient_key)
 {
     $this->checkKeyUsage($recipient_key, 'encryption');
     if ('dir' !== $key_encryption_algorithm->getAlgorithmName()) {
         $this->checkKeyAlgorithm($recipient_key, $key_encryption_algorithm->getAlgorithmName());
     } else {
         $this->checkKeyAlgorithm($recipient_key, $content_encryption_algorithm->getAlgorithmName());
     }
 }