WriteKeychainCommand
public class WriteKeychainCommand: KeychainCommand
KeychainCommand object for writing values to the keychain
See also
KeychainCommand
-
Returns a WriteKeychainCommand object for writing the given data value with the given key to the keychain
Declaration
Swift
public static func toWriteValue(_ value: Data, withKey: String) -> (WriteKeychainCommand)
Parameters
value
Data value to write to the keychain
withKey
Key to the value to write to the keychain
Return Value
WriteKeychainCommand object
-
Returns a WriteKeychainCommand object for writing the given boolean value with the given key to the keychain
Declaration
Swift
public static func toWriteValue(_ value: Bool, withKey: String) -> (WriteKeychainCommand)
Parameters
value
Bool value to write to the keychain
withKey
Key to the value to write to the keychain
Return Value
WriteKeychainCommand object
-
Returns a ReadKeychainCommand object for writing the given string value with the given key to the keychain
Declaration
Swift
public static func toWriteValue(_ value: String, withKey: String) -> (WriteKeychainCommand)
Parameters
value
String value to write to the keychain
withKey
Key to the value to write to the keychain
Return Value
WriteKeychainCommand object
-
Modifies the WriteKeychainCommand object to require the provided KeychainAccess when retrieving the key value.
See also
Declaration
Swift
public func withAccess(_ access: KeychainAccess) -> (Self)
Parameters
access
KeychainAccess to set on the keychain item
Return Value
Modified WriteKeychainCommand object