KeychainOptions

public struct KeychainOptions

KeychainOptions represent available options for Keychain Service

Property

  • Service name

    Declaration

    Swift

    public var service: String
  • AccessGroup as defined in Capabilities tab in XCode project

    Declaration

    Swift

    public var accessGroup: String?
  • url

    URL of designated storage

    Declaration

    Swift

    public var url: URL?
  • Boolean indicator whether the keychain data should be synchronized with iCloud

    Declaration

    Swift

    public var synchronizable: Bool
  • Default Accessibility flag

    Declaration

    Swift

    public var accessibility: KeychainAccessibility
  • Default match limit

    Declaration

    Swift

    public var matchLimit: String

Init

  • Initializes KeychainOptions with given Service namespace

    Declaration

    Swift

    public init(service: String)

    Parameters

    service

    Service namespace value as String

  • Initializes KeychainOptions with given Service namespace and AccessGroup

    Declaration

    Swift

    public init(service: String, accessGroup: String)

    Parameters

    service

    Service namespace value as String

    accessGroup

    Access Group value as defined in XCode’s Shared Keychain section under Capabilities tab

  • Initializes KeychainOptions with given URL; designed for KeychainItemClass Internet Password

    Declaration

    Swift

    public init(url: URL)

    Parameters

    url

    URL value for the internet password