CredentialsStorage
public protocol CredentialsStorage
Generic storage API for storing credentials.
-
Retrieves a storage entry.
Declaration
Swift
func getEntry(forKey key: String) -> Data?
Parameters
key
The key to get from the store.
Return Value
The stored data.
-
Sets a storage entry.
Declaration
Swift
func setEntry(_ data: Data, forKey key: String) -> Bool
Parameters
data
The data to be stored.
key
The key to store it to.
Return Value
If the data was stored.
-
Deletes a storage entry.
Declaration
Swift
func deleteEntry(forKey key: String) -> Bool
Parameters
key
The key to delete from the store.
Return Value
If the entry was deleted.