|
@@ 59-65 (lines=7) @@
|
| 56 |
|
* |
| 57 |
|
* @return \Jose\EncrypterInterface |
| 58 |
|
*/ |
| 59 |
|
public function createEncrypter(array $selected_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 60 |
|
{ |
| 61 |
|
$algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_algorithms); |
| 62 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 63 |
|
|
| 64 |
|
return EncrypterFactory::createEncrypter($algorithms, $compression_methods, $logger); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* @param string[] $selected_algorithms |
|
@@ 74-80 (lines=7) @@
|
| 71 |
|
* |
| 72 |
|
* @return \Jose\DecrypterInterface |
| 73 |
|
*/ |
| 74 |
|
public function createDecrypter(array $selected_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 75 |
|
{ |
| 76 |
|
$algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_algorithms); |
| 77 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 78 |
|
|
| 79 |
|
return DecrypterFactory::createDecrypter($algorithms, $compression_methods, $logger); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @param string[] $selected_algorithms |