|
@@ 67-74 (lines=8) @@
|
| 64 |
|
* |
| 65 |
|
* @return \Jose\EncrypterInterface |
| 66 |
|
*/ |
| 67 |
|
public function createEncrypter(array $selected_key_encryption_algorithms, array $selected_content_encryption_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 68 |
|
{ |
| 69 |
|
$key_encryption_algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_key_encryption_algorithms); |
| 70 |
|
$content_encryption_algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_content_encryption_algorithms); |
| 71 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 72 |
|
|
| 73 |
|
return Encrypter::createEncrypter($key_encryption_algorithms, $content_encryption_algorithms, $compression_methods, $logger); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* @param string[] $selected_key_encryption_algorithms |
|
@@ 83-90 (lines=8) @@
|
| 80 |
|
* |
| 81 |
|
* @return \Jose\DecrypterInterface |
| 82 |
|
*/ |
| 83 |
|
public function createDecrypter(array $selected_key_encryption_algorithms, array $selected_content_encryption_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 84 |
|
{ |
| 85 |
|
$key_encryption_algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_key_encryption_algorithms); |
| 86 |
|
$content_encryption_algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_content_encryption_algorithms); |
| 87 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 88 |
|
|
| 89 |
|
return Decrypter::createDecrypter($key_encryption_algorithms, $content_encryption_algorithms, $compression_methods, $logger); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* @param string[] $selected_algorithms |