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:

lib/public/Security/ICredentialsManager.php#44

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:

lib/public/Security/ICredentialsManager.php#54

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:

lib/public/Security/ICredentialsManager.php#64

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:

lib/public/Security/ICredentialsManager.php#73

Parameters:
  • $userId (string)
Returns:

int rows removed

Since:

8.2.0