LongTermKeysStorage

@objc(VSRLongTermKeysStorage)
public protocol LongTermKeysStorage

Protocol for Long-term private keys storage

  • Stores key

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func storeKey(_ key: Data, withId id: Data) throws

    Parameters

    key

    private key

    id

    key id

  • Retrieves key

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func retrieveKey(withId id: Data) throws -> LongTermKey

    Parameters

    id

    key id

    Return Value

    Long-term key

  • Deletes key

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func deleteKey(withId id: Data) throws

    Parameters

    id

    key id

  • Retrieves all persistent long-term keys

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func retrieveAllKeys() throws -> [LongTermKey]

    Return Value

    Long-term keys list

  • Marks key as outdated

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func markKeyOutdated(startingFrom date: Date, keyId: Data) throws

    Parameters

    date

    date from which this key started to be outdated

    keyId

    key id

  • Deletes all long-term keys

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func reset() throws