Storage¶
-
class
OC\Encryption\Keys\Storage¶ Source: lib/private/Encryption/Keys/Storage.php#40 Implements: OCP\Encryption\Keys\IStorage
Constants¶
-
KEY_STORAGE_MARKER = .oc_key_storage Source: lib/private/Encryption/Keys/Storage.php#43
Properties¶
Methods¶
-
public
OC\Encryption\Keys\Storage::__construct($view, $util, $crypto, $config)¶ Source: Parameters: - $view (
OC\Files\View) - $util (
OC\Encryption\Util)
- $view (
-
public
OC\Encryption\Keys\Storage::getUserKey($uid, $keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#93
-
public
OC\Encryption\Keys\Storage::getFileKey($path, $keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#101
-
public
OC\Encryption\Keys\Storage::getSystemUserKey($keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#120
-
public
OC\Encryption\Keys\Storage::setUserKey($uid, $keyId, $key, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#128
-
public
OC\Encryption\Keys\Storage::setFileKey($path, $keyId, $key, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#139
-
public
OC\Encryption\Keys\Storage::setSystemUserKey($keyId, $key, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#149
-
public
OC\Encryption\Keys\Storage::deleteUserKey($uid, $keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#160
-
public
OC\Encryption\Keys\Storage::deleteFileKey($path, $keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#181
-
public
OC\Encryption\Keys\Storage::deleteAllFileKeys($path)¶ Source: lib/private/Encryption/Keys/Storage.php#189
-
public
OC\Encryption\Keys\Storage::deleteSystemUserKey($keyId, $encryptionModuleId)¶ Source: lib/private/Encryption/Keys/Storage.php#197
-
protected
OC\Encryption\Keys\Storage::constructUserKeyPath($encryptionModuleId, $keyId, $uid)¶ - construct path to users key
Source: Parameters: - $encryptionModuleId (string)
- $keyId (string)
- $uid (string)
Returns: string
-
public
OC\Encryption\Keys\Storage::renameKeys($source, $target)¶ - move keys if a file was renamed
Source: Parameters: - $source (string)
- $target (string)
Returns: bool
-
public
OC\Encryption\Keys\Storage::copyKeys($source, $target)¶ - copy keys if a file was renamed
Source: Parameters: - $source (string)
- $target (string)
Returns: bool
-
public
OC\Encryption\Keys\Storage::backupUserKeys($encryptionModuleId, $purpose, $uid)¶ - backup keys of a given encryption module
Source: Parameters: - $encryptionModuleId (string)
- $purpose (string)
- $uid (string)
Returns: bool
Since: 12.0.0
-
protected
OC\Encryption\Keys\Storage::getTimestamp()¶ - get the current timestamp
Source: lib/private/Encryption/Keys/Storage.php#449 Returns: int
-
protected
OC\Encryption\Keys\Storage::getPathToKeys($path)¶ - get system wide path and detect mount points
Source: Parameters: - $path (string)
Returns: string
-
protected
OC\Encryption\Keys\Storage::keySetPreparation($path)¶ - Make preparations to filesystem for saving a key file
Source: Parameters: - $path (string) relative to the views root