LongTermKeysStorage
@objc(VSRLongTermKeysStorage)
public protocol LongTermKeysStorage
Protocol for Long-term private 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 -> LongTermKeyParameters
idkey id
Return Value
Long-term key
-
Deletes key
Throws
Depends on implementationDeclaration
Swift
@objc func deleteKey(withId id: Data) throwsParameters
idkey id
-
Retrieves all persistent long-term keys
Throws
Depends on implementationDeclaration
Swift
@objc func retrieveAllKeys() throws -> [LongTermKey]Return Value
Long-term keys list
-
Marks key as outdated
Throws
Depends on implementationDeclaration
Swift
@objc func markKeyOutdated(startingFrom date: Date, keyId: Data) throwsParameters
datedate from which this key started to be outdated
keyIdkey id
-
Deletes all long-term keys
Throws
Depends on implementationDeclaration
Swift
@objc func reset() throws
LongTermKeysStorage Protocol Reference