|
@@ 51-57 (lines=7) @@
|
| 48 |
|
* |
| 49 |
|
* @return \Jose\EncrypterInterface |
| 50 |
|
*/ |
| 51 |
|
public function createEncrypter(array $selected_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 52 |
|
{ |
| 53 |
|
$algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_algorithms); |
| 54 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 55 |
|
|
| 56 |
|
return EncrypterFactory::createEncrypter($algorithms, $compression_methods, $logger); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
/** |
| 60 |
|
* @param string[] $selected_algorithms |
|
@@ 66-72 (lines=7) @@
|
| 63 |
|
* |
| 64 |
|
* @return \Jose\DecrypterInterface |
| 65 |
|
*/ |
| 66 |
|
public function createDecrypter(array $selected_algorithms, array $selected_compression_methods, LoggerInterface $logger = null) |
| 67 |
|
{ |
| 68 |
|
$algorithms = $this->algorithm_manager->getSelectedAlgorithmMethods($selected_algorithms); |
| 69 |
|
$compression_methods = $this->compression_manager->getSelectedCompressionMethods($selected_compression_methods); |
| 70 |
|
|
| 71 |
|
return DecrypterFactory::createDecrypter($algorithms, $compression_methods, $logger); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |
| 75 |
|
* @param string[] $selected_algorithms |