OneTimeKeysStorage
@objc(VSROneTimeKeysStorage)
public protocol OneTimeKeysStorage
One-time keys storage
-
Stores key
Throws
Depends on implementationDeclaration
Swift
@objc func storeKey(_ key: Data, withId id: Data) throws
Parameters
key
private key
id
key id
-
Retrieves key
Throws
Depends on implementationDeclaration
Swift
@objc func retrieveKey(withId id: Data) throws -> OneTimeKey
Parameters
id
key id
Return Value
One-time private key
-
Deletes key
Throws
Depends on implementationDeclaration
Swift
@objc func deleteKey(withId id: Data) throws
Parameters
id
key id
-
Retrieves all keys
Throws
Depends on implementationDeclaration
Swift
@objc func retrieveAllKeys() throws -> [OneTimeKeyInfo]
Return Value
Returns all keys
-
Marks key as orphaned
Throws
Depends on implementationDeclaration
Swift
@objc func markKeyOrphaned(startingFrom date: Date, keyId: Data) throws
Parameters
date
date from which we found out that this key is orphaned
keyId
key id
-
Deletes all keys
Throws
Depends on implementationDeclaration
Swift
@objc func reset() throws