aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Session.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/Session.php')
-rw-r--r--apps/encryption/lib/Session.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/encryption/lib/Session.php b/apps/encryption/lib/Session.php
index e16396e8faf..df1e5d664ad 100644
--- a/apps/encryption/lib/Session.php
+++ b/apps/encryption/lib/Session.php
@@ -12,9 +12,6 @@ use OCP\ISession;
class Session {
- /** @var ISession */
- protected $session;
-
public const NOT_INITIALIZED = '0';
public const INIT_EXECUTED = '1';
public const INIT_SUCCESSFUL = '2';
@@ -22,8 +19,9 @@ class Session {
/**
* @param ISession $session
*/
- public function __construct(ISession $session) {
- $this->session = $session;
+ public function __construct(
+ protected ISession $session,
+ ) {
}
/**
@@ -68,7 +66,7 @@ class Session {
public function getPrivateKey() {
$key = $this->session->get('privateKey');
if (is_null($key)) {
- throw new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0);
+ throw new PrivateKeyMissingException('please try to log-out and log-in again');
}
return $key;
}