ICredentialsManager¶
-
interface
OCP\Security\
ICredentialsManager
¶ - Store and retrieve credentials for external services
Implemented by: OC\Security\CredentialsManager
Source: lib/public/Security/ICredentialsManager.php#34
Methods¶
-
public
OCP\Security\ICredentialsManager::
store
($userId, $identifier, $credentials)¶ - Store a set of credentials
Source: Parameters: - $userId (string) empty string for system-wide credentials
- $identifier (string)
- $credentials (mixed)
Since: 8.2.0
-
public
OCP\Security\ICredentialsManager::
retrieve
($userId, $identifier)¶ - Retrieve a set of credentials
Source: Parameters: - $userId (string) empty string for system-wide credentials
- $identifier (string)
Returns: mixed
Since: 8.2.0
-
public
OCP\Security\ICredentialsManager::
delete
($userId, $identifier)¶ - Delete a set of credentials
Source: Parameters: - $userId (string) empty string for system-wide credentials
- $identifier (string)
Returns: int rows removed
Since: 8.2.0
-
public
OCP\Security\ICredentialsManager::
erase
($userId)¶ - Erase all credentials stored for a user
Source: Parameters: - $userId (string)
Returns: int rows removed
Since: 8.2.0