ReadKeychainCommand
public class ReadKeychainCommand: KeychainCommand
KeychainCommand object for reading values from the keychain
See also
KeychainCommand
-
Returns a ReadKeychainCommand object for reading the given key from the keychain
Declaration
Swift
public static func toReadWithKey(_ key: String) -> (ReadKeychainCommand)
Parameters
key
Key to read from the keychain
Return Value
ReadKeychainCommand object
-
Modifies the ReadKeychainCommand object to include a BiometricAuthentication prompt.
If included, and running on a platform that supports keychain authentication prompts, the prompt will display and the user must authenticate before the value will be returned from the keychain
related: kSecUseOperationPrompt
See also
Declaration
Swift
public func withBiometricAuthenticationPrompt(_ prompt: String) -> (Self)
Parameters
prompt
Key to read from the keychain
Return Value
Modified ReadKeychainCommand object