diff options
Diffstat (limited to 'apps/files_external/lib/storageconfig.php')
-rw-r--r-- | apps/files_external/lib/storageconfig.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/files_external/lib/storageconfig.php b/apps/files_external/lib/storageconfig.php index cf8271ff4eb..96ba2f72ae6 100644 --- a/apps/files_external/lib/storageconfig.php +++ b/apps/files_external/lib/storageconfig.php @@ -22,6 +22,7 @@ namespace OCA\Files_external\Lib; use \OCA\Files_External\Lib\Backend\Backend; +use \OCA\Files_External\Lib\Auth\AuthMechanism; /** * External storage configuration @@ -43,6 +44,13 @@ class StorageConfig implements \JsonSerializable { private $backend; /** + * Authentication mechanism + * + * @var AuthMechanism + */ + private $authMechanism; + + /** * Backend options * * @var array @@ -154,6 +162,20 @@ class StorageConfig implements \JsonSerializable { } /** + * @return AuthMechanism + */ + public function getAuthMechanism() { + return $this->authMechanism; + } + + /** + * @param AuthMechanism + */ + public function setAuthMechanism(AuthMechanism $authMechanism) { + $this->authMechanism = $authMechanism; + } + + /** * Returns the external storage backend-specific options * * @return array backend options @@ -301,6 +323,7 @@ class StorageConfig implements \JsonSerializable { } $result['mountPoint'] = $this->mountPoint; $result['backendClass'] = $this->backend->getClass(); + $result['authMechanismClass'] = $this->authMechanism->getClass(); $result['backendOptions'] = $this->backendOptions; if (!is_null($this->priority)) { $result['priority'] = $this->priority; |