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: Parameters: - $crypto (
OCP\Security\ICrypto
) - $dbConnection (
OCP\IDBConnection
)
- $crypto (
-
public
OC\Security\CredentialsManager::
store
($userId, $identifier, $credentials)¶ - Store a set of credentials
Source: 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: 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: 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: Parameters: - $userId (string)
Returns: int rows removed