CredentialsManager

class OC\Security\CredentialsManager
Store and retrieve credentials for external services
Source:lib/private/Security/CredentialsManager.php#40
Implements:OCP\Security\ICredentialsManager

Constants

DB_TABLE = storages_credentials
Source:lib/private/Security/CredentialsManager.php#41

Properties

protected static property OC\Security\CredentialsManager::$crypto
Source:lib/private/Security/CredentialsManager.php#44
Type:\OCP\Security\ICrypto
protected static property OC\Security\CredentialsManager::$dbConnection
Source:lib/private/Security/CredentialsManager.php#47
Type:\OCP\IDBConnection

Methods

public OC\Security\CredentialsManager::__construct($crypto, $dbConnection)
Source:

lib/private/Security/CredentialsManager.php#53

Parameters:
public OC\Security\CredentialsManager::store($userId, $identifier, $credentials)
Store a set of credentials
Source:

lib/private/Security/CredentialsManager.php#65

Parameters:
  • $userId (string) empty string for system-wide credentials
  • $identifier (string)
  • $credentials (mixed)
public OC\Security\CredentialsManager::retrieve($userId, $identifier)
Retrieve a set of credentials
Source:

lib/private/Security/CredentialsManager.php#83

Parameters:
  • $userId (string) empty string for system-wide credentials
  • $identifier (string)
Returns:

mixed

public OC\Security\CredentialsManager::delete($userId, $identifier)
Delete a set of credentials
Source:

lib/private/Security/CredentialsManager.php#114

Parameters:
  • $userId (string) empty string for system-wide credentials
  • $identifier (string)
Returns:

int rows removed

public OC\Security\CredentialsManager::erase($userId)
Erase all credentials stored for a user
Source:

lib/private/Security/CredentialsManager.php#134

Parameters:
  • $userId (string)
Returns:

int rows removed