PersistentStorageEncryptionKeyProvider

public protocol PersistentStorageEncryptionKeyProvider

Protocol that wraps the key generator required for the configuration of the Tile Store persistent storage.

  • Retrieves an encryption key that can be used to interact with persistent storage. If no such key was generated before, then a new key is generated and stored for future use and then returned to the caller.

    Declaration

    Swift

    func getPersistentStorageEncryptionKey(keyAlias: String) -> String

    Parameters

    keyAlias

    The name of the service for which the key is needed. Here we use a common name “tilestore-storage-key” for ‘NavigationTileStore’

    Return Value

    persistent storage encryption key.