diff --git a/README.md b/README.md index 64dd4a30..ca908655 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Migrating from 0.x? Check the [Migration Guide](V1_MIGRATION_GUIDE.md). ### Requirements -- iOS 16.0+ / macOS 13.0+ / tvOS 16.0+ / watchOS 9.0+ +- iOS 16.0+ / macOS 13.0+ / tvOS 16.0+ / watchOS 9.0+ / visionOS 1.0+ - Xcode 26.x - Swift 6.0+ @@ -136,7 +136,7 @@ catch let error as SimpleKeychainError { ## Support Policy -This Policy defines the extent of the support for Xcode, Swift, and platform (iOS, macOS, tvOS, and watchOS) versions in SimpleKeychain. +This Policy defines the extent of the support for Xcode, Swift, and platform (iOS, macOS, tvOS, watchOS, and visionOS) versions in SimpleKeychain. ### Xcode diff --git a/SimpleKeychain/SimpleKeychain.swift b/SimpleKeychain/SimpleKeychain.swift index 24191d50..f041f0d7 100644 --- a/SimpleKeychain/SimpleKeychain.swift +++ b/SimpleKeychain/SimpleKeychain.swift @@ -7,7 +7,7 @@ import Security typealias RetrieveFunction = (_ query: CFDictionary, _ result: UnsafeMutablePointer?) -> OSStatus typealias RemoveFunction = (_ query: CFDictionary) -> OSStatus -/// A simple Keychain wrapper for iOS, macOS, tvOS, and watchOS. +/// A simple Keychain wrapper for iOS, macOS, tvOS, watchOS, and visionOS. /// Supports sharing credentials with an **access group** or through **iCloud**, and integrating /// **Touch ID / Face ID**. public struct SimpleKeychain: @unchecked Sendable { diff --git a/docs/data/documentation/simplekeychain/simplekeychain.json b/docs/data/documentation/simplekeychain/simplekeychain.json index 17f9cdd9..7289a4cd 100644 --- a/docs/data/documentation/simplekeychain/simplekeychain.json +++ b/docs/data/documentation/simplekeychain/simplekeychain.json @@ -1 +1 @@ -{"kind":"symbol","sections":[],"abstract":[{"text":"A simple Keychain wrapper for iOS, macOS, tvOS, and watchOS.","type":"text"},{"type":"text","text":" "},{"text":"Supports sharing credentials with an ","type":"text"},{"type":"strong","inlineContent":[{"type":"text","text":"access group"}]},{"type":"text","text":" or through "},{"type":"strong","inlineContent":[{"type":"text","text":"iCloud"}]},{"type":"text","text":", and integrating"},{"type":"text","text":" "},{"type":"strong","inlineContent":[{"text":"Touch ID \/ Face ID","type":"text"}]},{"type":"text","text":"."}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Structure","navigatorTitle":[{"text":"SimpleKeychain","kind":"identifier"}],"modules":[{"name":"SimpleKeychain"}],"externalID":"s:14SimpleKeychainAAV","symbolKind":"struct","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"SimpleKeychain","kind":"identifier"}],"role":"symbol","title":"SimpleKeychain"},"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","identifiers":["doc:\/\/com.auth0.SimpleKeychain\/s8SendableP"],"kind":"relationships"}],"hierarchy":{"paths":[["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain"]]},"identifier":{"url":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"SimpleKeychain","kind":"identifier"}],"languages":["swift"],"platforms":["iOS"]}]}],"topicSections":[{"identifiers":["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)"],"anchor":"Initializers","title":"Initializers","generated":true},{"anchor":"Instance-Methods","generated":true,"title":"Instance Methods","identifiers":["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/data(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteAll()","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteItem(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/hasItem(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/keys()","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-618u7","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-n98i","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/string(forKey:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/simplekeychain\/simplekeychain"]}],"references":{"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain":{"title":"SimpleKeychain","role":"collection","type":"topic","kind":"symbol","abstract":[],"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain","url":"\/documentation\/simplekeychain"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/set(_:forKey:)-618u7":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"set","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:10Foundation4DataV","text":"Data","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"kind":"symbol","role":"symbol","type":"topic","abstract":[{"text":"Saves a ","type":"text"},{"type":"codeVoice","code":"Data"},{"type":"text","text":" value with the type "},{"type":"codeVoice","code":"kSecClassGenericPassword"},{"type":"text","text":" in the Keychain."}],"title":"set(_:forKey:)","url":"\/documentation\/simplekeychain\/simplekeychain\/set(_:forkey:)-618u7","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-618u7"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/data(forKey:)":{"abstract":[{"text":"Retrieves a ","type":"text"},{"type":"codeVoice","code":"Data"},{"text":" value from the Keychain.","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"data","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"forKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Data","kind":"typeIdentifier","preciseIdentifier":"s:10Foundation4DataV"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/data(forkey:)","type":"topic","kind":"symbol","role":"symbol","title":"data(forKey:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/data(forKey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/hasItem(forKey:)":{"abstract":[{"type":"text","text":"Checks if an item is stored in the Keychain."}],"title":"hasItem(forKey:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"hasItem"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"type":"topic","kind":"symbol","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/hasItem(forKey:)","role":"symbol","url":"\/documentation\/simplekeychain\/simplekeychain\/hasitem(forkey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/set(_:forKey:)-n98i":{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-n98i","type":"topic","url":"\/documentation\/simplekeychain\/simplekeychain\/set(_:forkey:)-n98i","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"set","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"forKey"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"role":"symbol","kind":"symbol","title":"set(_:forKey:)","abstract":[{"type":"text","text":"Saves a "},{"code":"String","type":"codeVoice"},{"type":"text","text":" value with the type "},{"type":"codeVoice","code":"kSecClassGenericPassword"},{"type":"text","text":" in the Keychain."}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/deleteAll()":{"title":"deleteAll()","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/simplekeychain\/simplekeychain\/deleteall()","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteAll()","abstract":[{"type":"text","text":"Deletes all items from the Keychain for the service and access group values."}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deleteAll"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/deleteItem(forKey:)":{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteItem(forKey:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deleteItem","kind":"identifier"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/deleteitem(forkey:)","role":"symbol","abstract":[{"text":"Deletes an item from the Keychain.","type":"text"}],"title":"deleteItem(forKey:)","kind":"symbol"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Initializes a "},{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","type":"reference","isActive":true},{"type":"text","text":" instance."}],"role":"symbol","title":"init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"service"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"text":"accessGroup","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":"?, "},{"text":"accessibility","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:14SimpleKeychain13AccessibilityO","text":"Accessibility","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"accessControlFlags","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"c:@E@SecAccessControlCreateFlags","text":"SecAccessControlCreateFlags"},{"kind":"text","text":"?, "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"LAContext","preciseIdentifier":"c:objc(cs)LAContext"},{"text":"?, ","kind":"text"},{"text":"synchronizable","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"},{"kind":"text","text":", "},{"kind":"externalParam","text":"attributes"},{"text":": [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" : ","kind":"text"},{"text":"Any","kind":"keyword"},{"kind":"text","text":"])"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/init(service:accessgroup:accessibility:accesscontrolflags:context:synchronizable:attributes:)"},"doc://com.auth0.SimpleKeychain/s8SendableP":{"type":"unresolvable","identifier":"doc:\/\/com.auth0.SimpleKeychain\/s8SendableP","title":"Swift.Sendable"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain":{"kind":"symbol","title":"SimpleKeychain","role":"symbol","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","type":"topic","navigatorTitle":[{"kind":"identifier","text":"SimpleKeychain"}],"url":"\/documentation\/simplekeychain\/simplekeychain","abstract":[{"text":"A simple Keychain wrapper for iOS, macOS, tvOS, and watchOS.","type":"text"},{"text":" ","type":"text"},{"text":"Supports sharing credentials with an ","type":"text"},{"inlineContent":[{"text":"access group","type":"text"}],"type":"strong"},{"type":"text","text":" or through "},{"inlineContent":[{"text":"iCloud","type":"text"}],"type":"strong"},{"text":", and integrating","type":"text"},{"text":" ","type":"text"},{"type":"strong","inlineContent":[{"text":"Touch ID \/ Face ID","type":"text"}]},{"type":"text","text":"."}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"SimpleKeychain","kind":"identifier"}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/string(forKey:)":{"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"string","kind":"identifier"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieves a "},{"type":"codeVoice","code":"String"},{"type":"text","text":" value from the Keychain."}],"title":"string(forKey:)","url":"\/documentation\/simplekeychain\/simplekeychain\/string(forkey:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/string(forKey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/keys()":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keys","kind":"identifier"},{"kind":"text","text":"() "},{"text":"throws","kind":"keyword"},{"text":" -> [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":"]","kind":"text"}],"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/keys()","abstract":[{"type":"text","text":"Retrieves the keys of all the items stored in the Keychain for the service and access group values."}],"type":"topic","kind":"symbol","title":"keys()","url":"\/documentation\/simplekeychain\/simplekeychain\/keys()","role":"symbol"}}} \ No newline at end of file +{"kind":"symbol","sections":[],"abstract":[{"text":"A simple Keychain wrapper for iOS, macOS, tvOS, watchOS, and visionOS.","type":"text"},{"type":"text","text":" "},{"text":"Supports sharing credentials with an ","type":"text"},{"type":"strong","inlineContent":[{"type":"text","text":"access group"}]},{"type":"text","text":" or through "},{"type":"strong","inlineContent":[{"type":"text","text":"iCloud"}]},{"type":"text","text":", and integrating"},{"type":"text","text":" "},{"type":"strong","inlineContent":[{"text":"Touch ID \/ Face ID","type":"text"}]},{"type":"text","text":"."}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Structure","navigatorTitle":[{"text":"SimpleKeychain","kind":"identifier"}],"modules":[{"name":"SimpleKeychain"}],"externalID":"s:14SimpleKeychainAAV","symbolKind":"struct","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"SimpleKeychain","kind":"identifier"}],"role":"symbol","title":"SimpleKeychain"},"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","identifiers":["doc:\/\/com.auth0.SimpleKeychain\/s8SendableP"],"kind":"relationships"}],"hierarchy":{"paths":[["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain"]]},"identifier":{"url":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"SimpleKeychain","kind":"identifier"}],"languages":["swift"],"platforms":["iOS"]}]}],"topicSections":[{"identifiers":["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)"],"anchor":"Initializers","title":"Initializers","generated":true},{"anchor":"Instance-Methods","generated":true,"title":"Instance Methods","identifiers":["doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/data(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteAll()","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteItem(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/hasItem(forKey:)","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/keys()","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-618u7","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-n98i","doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/string(forKey:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/simplekeychain\/simplekeychain"]}],"references":{"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain":{"title":"SimpleKeychain","role":"collection","type":"topic","kind":"symbol","abstract":[],"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain","url":"\/documentation\/simplekeychain"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/set(_:forKey:)-618u7":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"set","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:10Foundation4DataV","text":"Data","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"kind":"symbol","role":"symbol","type":"topic","abstract":[{"text":"Saves a ","type":"text"},{"type":"codeVoice","code":"Data"},{"type":"text","text":" value with the type "},{"type":"codeVoice","code":"kSecClassGenericPassword"},{"type":"text","text":" in the Keychain."}],"title":"set(_:forKey:)","url":"\/documentation\/simplekeychain\/simplekeychain\/set(_:forkey:)-618u7","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-618u7"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/data(forKey:)":{"abstract":[{"text":"Retrieves a ","type":"text"},{"type":"codeVoice","code":"Data"},{"text":" value from the Keychain.","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"data","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"forKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Data","kind":"typeIdentifier","preciseIdentifier":"s:10Foundation4DataV"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/data(forkey:)","type":"topic","kind":"symbol","role":"symbol","title":"data(forKey:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/data(forKey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/hasItem(forKey:)":{"abstract":[{"type":"text","text":"Checks if an item is stored in the Keychain."}],"title":"hasItem(forKey:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"hasItem"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"type":"topic","kind":"symbol","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/hasItem(forKey:)","role":"symbol","url":"\/documentation\/simplekeychain\/simplekeychain\/hasitem(forkey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/set(_:forKey:)-n98i":{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/set(_:forKey:)-n98i","type":"topic","url":"\/documentation\/simplekeychain\/simplekeychain\/set(_:forkey:)-n98i","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"set","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"forKey"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"role":"symbol","kind":"symbol","title":"set(_:forKey:)","abstract":[{"type":"text","text":"Saves a "},{"code":"String","type":"codeVoice"},{"type":"text","text":" value with the type "},{"type":"codeVoice","code":"kSecClassGenericPassword"},{"type":"text","text":" in the Keychain."}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/deleteAll()":{"title":"deleteAll()","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/simplekeychain\/simplekeychain\/deleteall()","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteAll()","abstract":[{"type":"text","text":"Deletes all items from the Keychain for the service and access group values."}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deleteAll"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/deleteItem(forKey:)":{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/deleteItem(forKey:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deleteItem","kind":"identifier"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/deleteitem(forkey:)","role":"symbol","abstract":[{"text":"Deletes an item from the Keychain.","type":"text"}],"title":"deleteItem(forKey:)","kind":"symbol"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Initializes a "},{"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","type":"reference","isActive":true},{"type":"text","text":" instance."}],"role":"symbol","title":"init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/init(service:accessGroup:accessibility:accessControlFlags:context:synchronizable:attributes:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"service"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"text":"accessGroup","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":"?, "},{"text":"accessibility","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:14SimpleKeychain13AccessibilityO","text":"Accessibility","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"accessControlFlags","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"c:@E@SecAccessControlCreateFlags","text":"SecAccessControlCreateFlags"},{"kind":"text","text":"?, "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"LAContext","preciseIdentifier":"c:objc(cs)LAContext"},{"text":"?, ","kind":"text"},{"text":"synchronizable","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"},{"kind":"text","text":", "},{"kind":"externalParam","text":"attributes"},{"text":": [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" : ","kind":"text"},{"text":"Any","kind":"keyword"},{"kind":"text","text":"])"}],"url":"\/documentation\/simplekeychain\/simplekeychain\/init(service:accessgroup:accessibility:accesscontrolflags:context:synchronizable:attributes:)"},"doc://com.auth0.SimpleKeychain/s8SendableP":{"type":"unresolvable","identifier":"doc:\/\/com.auth0.SimpleKeychain\/s8SendableP","title":"Swift.Sendable"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain":{"kind":"symbol","title":"SimpleKeychain","role":"symbol","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain","type":"topic","navigatorTitle":[{"kind":"identifier","text":"SimpleKeychain"}],"url":"\/documentation\/simplekeychain\/simplekeychain","abstract":[{"text":"A simple Keychain wrapper for iOS, macOS, tvOS, watchOS, and visionOS.","type":"text"},{"text":" ","type":"text"},{"text":"Supports sharing credentials with an ","type":"text"},{"inlineContent":[{"text":"access group","type":"text"}],"type":"strong"},{"type":"text","text":" or through "},{"inlineContent":[{"text":"iCloud","type":"text"}],"type":"strong"},{"text":", and integrating","type":"text"},{"text":" ","type":"text"},{"type":"strong","inlineContent":[{"text":"Touch ID \/ Face ID","type":"text"}]},{"type":"text","text":"."}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"SimpleKeychain","kind":"identifier"}]},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/string(forKey:)":{"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"string","kind":"identifier"},{"kind":"text","text":"("},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieves a "},{"type":"codeVoice","code":"String"},{"type":"text","text":" value from the Keychain."}],"title":"string(forKey:)","url":"\/documentation\/simplekeychain\/simplekeychain\/string(forkey:)","identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/string(forKey:)"},"doc://com.auth0.SimpleKeychain/documentation/SimpleKeychain/SimpleKeychain/keys()":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keys","kind":"identifier"},{"kind":"text","text":"() "},{"text":"throws","kind":"keyword"},{"text":" -> [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":"]","kind":"text"}],"identifier":"doc:\/\/com.auth0.SimpleKeychain\/documentation\/SimpleKeychain\/SimpleKeychain\/keys()","abstract":[{"type":"text","text":"Retrieves the keys of all the items stored in the Keychain for the service and access group values."}],"type":"topic","kind":"symbol","title":"keys()","url":"\/documentation\/simplekeychain\/simplekeychain\/keys()","role":"symbol"}}} \ No newline at end of file