CLASS
KeychainStorage
Contents
- Methods
write(key:data:)
read(key:)
delete(key:)
public class KeychainStorage: Storage
Methods
write(key:data:)
public func write(key: String, data: Data) throws
Parameters
Name |
Description |
key |
the name of the entry to write in the Storage. |
data |
the Data representation of the value to write to the entry with the name of the key parameter |
read(key:)
public func read(key: String) throws -> Data?
Parameters
Name |
Description |
key |
the name of the entry to look up in the Storage. |
delete(key:)
public func delete(key: String) throws
Parameters
Name |
Description |
key |
the name of the entry to delete from the Storage. |