DecryptAll

class OC\Encryption\DecryptAll
Source:lib/private/Encryption/DecryptAll.php#40

Properties

protected static property OC\Encryption\DecryptAll::$output
Source:lib/private/Encryption/DecryptAll.php#43
Type:\Symfony\Component\Console\Output\OutputInterface
protected static property OC\Encryption\DecryptAll::$input
Source:lib/private/Encryption/DecryptAll.php#46
Type:\Symfony\Component\Console\Input\InputInterface
protected static property OC\Encryption\DecryptAll::$encryptionManager
Source:lib/private/Encryption/DecryptAll.php#49
Type:\OC\Encryption\Manager
protected static property OC\Encryption\DecryptAll::$userManager
Source:lib/private/Encryption/DecryptAll.php#52
Type:\OCP\IUserManager
protected static property OC\Encryption\DecryptAll::$rootView
Source:lib/private/Encryption/DecryptAll.php#55
Type:\OC\Files\View
protected static property OC\Encryption\DecryptAll::$failed
Source:lib/private/Encryption/DecryptAll.php#58
Type:array files which couldn’t be decrypted

Methods

public OC\Encryption\DecryptAll::__construct($encryptionManager, $userManager, $rootView)
Source:

lib/private/Encryption/DecryptAll.php#65

Parameters:
public OC\Encryption\DecryptAll::decryptAll($input, $output, $user="")
start to decrypt all files
Source:

lib/private/Encryption/DecryptAll.php#85

Parameters:
  • $input (Symfony\Component\Console\Input\InputInterface)
  • $output (Symfony\Component\Console\Output\OutputInterface)
  • $user (string) which users data folder should be decrypted, default = all users
Returns:

bool

Throws:

\Exception

protected OC\Encryption\DecryptAll::prepareEncryptionModules($user)
prepare encryption modules to perform the decrypt all function
Source:

lib/private/Encryption/DecryptAll.php#125

Parameters:
  • $user
Returns:

bool

protected OC\Encryption\DecryptAll::decryptAllUsersFiles($user="")
iterate over all user and encrypt their files
Source:

lib/private/Encryption/DecryptAll.php#148

Parameters:
  • $user (string) which users files should be decrypted, default = all users
protected OC\Encryption\DecryptAll::decryptUsersFiles($uid, $progress, $userCount)
encrypt files from the given user
Source:

lib/private/Encryption/DecryptAll.php#206

Parameters:
  • $uid (string)
  • $progress (Symfony\Component\Console\Helper\ProgressBar)
  • $userCount (string)
protected OC\Encryption\DecryptAll::decryptFile($path)
encrypt file
Source:

lib/private/Encryption/DecryptAll.php#253

Parameters:
  • $path (string)
Returns:

bool

protected OC\Encryption\DecryptAll::getTimestamp()
get current timestamp
Source:lib/private/Encryption/DecryptAll.php#283
Returns:int
protected OC\Encryption\DecryptAll::setupUserFS($uid)
setup user file system
Source:

lib/private/Encryption/DecryptAll.php#293

Parameters:
  • $uid (string)