@@ -99,7 +99,7 @@ public struct KeychainStore: KeychainStoreBehavior {
99
99
/// - Parameter key: A String key use to look up the value in the Keychain
100
100
/// - Returns: A data value
101
101
public func _getData( _ key: String ) throws -> Data {
102
- var query = attributes. defaultGetQuery ( )
102
+ var query = attributes. query ( )
103
103
104
104
query [ Constants . MatchLimit] = Constants . MatchLimitOne
105
105
query [ Constants . ReturnData] = kCFBooleanTrue
@@ -142,7 +142,7 @@ public struct KeychainStore: KeychainStoreBehavior {
142
142
/// - value: A data value to store in Keychain
143
143
/// - key: A String key for the value to store in the Keychain
144
144
public func _set( _ value: Data , key: String ) throws {
145
- var query = attributes. defaultSetQuery ( )
145
+ var query = attributes. query ( )
146
146
query [ Constants . AttributeAccount] = key
147
147
148
148
let fetchStatus = SecItemCopyMatching ( query as CFDictionary , nil )
@@ -173,7 +173,7 @@ public struct KeychainStore: KeychainStoreBehavior {
173
173
/// This System Programming Interface (SPI) may have breaking changes in future updates.
174
174
/// - Parameter key: A String key to delete the key-value pair
175
175
public func _remove( _ key: String ) throws {
176
- var query = attributes. defaultGetQuery ( )
176
+ var query = attributes. query ( )
177
177
query [ Constants . AttributeAccount] = key
178
178
179
179
let status = SecItemDelete ( query as CFDictionary )
@@ -186,7 +186,7 @@ public struct KeychainStore: KeychainStoreBehavior {
186
186
/// Removes all key-value pair in the Keychain.
187
187
/// This System Programming Interface (SPI) may have breaking changes in future updates.
188
188
public func _removeAll( ) throws {
189
- var query = attributes. defaultGetQuery ( )
189
+ var query = attributes. query ( )
190
190
#if !os(iOS) && !os(watchOS) && !os(tvOS)
191
191
query [ Constants . MatchLimit] = Constants . MatchLimitAll
192
192
#endif
0 commit comments