SecureKeyValueStoreManager
open class SecureKeyValueStoreManager : PersistentStoreManaging, ContextSupporting
SecureKeyValueStoreManager implementation of PersistentStoreManaging
-
The
OnboardingInfoKey
associated with an instance ofsecureStoreFolderPath
in theOnboardingContext
info.Declaration
Swift
public var secureStoreFolderPathInfoKey: OnboardingInfoKey
-
The path of the folder that contains the SecureStore
Declaration
Swift
public var secureStoreFolderPath: String?
-
Initializer
Declaration
Swift
public init(secureStoreFolderPathInfoKey: OnboardingInfoKey = .secureStoreFolderPath, secureStoreFolderPath: String? = nil)
Parameters
secureStoreFolderPathInfoKey
The
OnboardingInfoKey
associated with an instance ofsecureStoreFolderPath
in theOnboardingContext
info.
-
Tries to create store with the given password. After creation opens the store and will be ready to use.
Declaration
Swift
open func createStore(name: String, passcode: String?) throws -> DataStoring
-
Tries to open the store with the given passcode
Declaration
Swift
open func openStore(name: String, passcode: String?) throws -> DataStoring
-
Removes the given store from the FileManager, if exists Before deletion, the store will be closed anyway
Declaration
Swift
open func removeStore(name: String, store: DataStoring?) throws
-
Change the encryption of the given store
Declaration
Swift
open func changePasscode(store: DataStoring, newPasscode: String?) throws
-
Checks if the store exists for the given name.
Declaration
Swift
open func storeExists(name: String) throws -> Bool
-
Apply the given context on StoreManager. The context should contain store related information.
Declaration
Swift
open func applyContext(_ context: OnboardingContext)