KeychainStorage
open class KeychainStorage : DelegatedStorage
KeychainStorage
subclass of DelegatedStorage
that uses a KeychainStorageDelegate
.
-
KeychainStorage
shared instance.Declaration
Swift
open class var standard: KeychainStorage { get }
-
Access group where
StorageData
is in.Declaration
Swift
open var accessGroup: String? { get set }
-
Whether the
StorageData
can be synchronized.Declaration
Swift
open var synchronizable: Bool { get set }
-
When
StorageData
can be accessed in the keychain.Declaration
Swift
open var accessible: CFString { get set }
-
Create a
KeychainStorage
.Declaration
Swift
public convenience init(_ delegate: StorageDelegate = KeychainStorageDelegate(), authenticationTag: Data? = nil, errorClosure: StorageErrorClosure? = nil)
Parameters
delegate
StorageDelegate
, defaultsKeychainStorageDelegate
.authenticationTag
Custom additional
Data
to be authenticated.errorClosure
Closure to handle
KeychainStorageDelegate
errors.