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 TouchId 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

  • Declaration

    Swift

    public func withTouchIdPrompt(_ prompt: String) -> (Self)

    Parameters

    prompt

    Key to read from the keychain

    Return Value

    Modified ReadKeychainCommand object