/** * @param Cache $decorated * @param mixed $cert * @param mixed $key * @param string|null $passphrase * @param string $cipher * * @throws IAE If OpenSSL keys cannot be extracted from $cert and $key. */ public function __construct(Cache $decorated, $cert, $key, $passphrase = null, $cipher = 'aes-256-cbc') { parent::__construct($decorated); $this->setPublicKey($cert); $this->setPrivateKey($key, $passphrase); $this->cipher = $cipher; }
public function __construct(Cache $decorated, $passphrase, $cipher = 'aes-256-cbc') { parent::__construct($decorated); $this->passphrase = $passphrase; $this->cipher = $cipher; }