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) throwsParameters
keyprivate key
idkey id
-
Retrieves key
Throws
Depends on implementationDeclaration
Swift
@objc func retrieveKey(withId id: Data) throws -> OneTimeKeyParameters
idkey id
Return Value
One-time private key
-
Deletes key
Throws
Depends on implementationDeclaration
Swift
@objc func deleteKey(withId id: Data) throwsParameters
idkey 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) throwsParameters
datedate from which we found out that this key is orphaned
keyIdkey id
-
Deletes all keys
Throws
Depends on implementationDeclaration
Swift
@objc func reset() throws
OneTimeKeysStorage Protocol Reference