UnbluKeychainPreferencesStorage
class UnbluKeychainPreferencesStorage
When this class is passed to the CoreSDK at configuration, Unblu will store certain preferences securely in the Keychain.
-
Initializes the class with the given
UnbluKeychainAccessControland an optional service to associate items in the Keychain with.Declaration
Swift
init(accessControl: UnbluKeychainAccessControl, shared: Bool? = false)Parameters
accessControlThe access control level that Unblu should store items into the Keychain using.
sharedwe use shared container or local container
-
Stores the given value into the Keychain with the given key
Declaration
Swift
func put(key: String, value: String?)Parameters
keyThe key to store the value in the Keychain
valueThe value for the given key
-
Returns the value for the given key from the Keychain
Declaration
Swift
func get(key: String) -> String?Parameters
keyThe key to retrieve from the Keychain
Return Value
The value for the given key stored in the Keychain.
nilif there is no value found.