\OCP\SecurityICredentialsManager

Store and retrieve credentials for external services

Summary

Methods
Constants
store()
retrieve()
delete()
erase()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

store()

store(string|null  $userId, string  $identifier, mixed  $credentials) 

Store a set of credentials

Parameters

string|null $userId

Null for system-wide credentials

string $identifier
mixed $credentials

retrieve()

retrieve(string|null  $userId, string  $identifier) : mixed

Retrieve a set of credentials

Parameters

string|null $userId

Null for system-wide credentials

string $identifier

Returns

mixed

delete()

delete(string|null  $userId, string  $identifier) : integer

Delete a set of credentials

Parameters

string|null $userId

Null for system-wide credentials

string $identifier

Returns

integer —

rows removed

erase()

erase(string  $userId) : integer

Erase all credentials stored for a user

Parameters

string $userId

Returns

integer —

rows removed