diff --git a/Libraries/Sources/KeychainStorage/Protocols/Keychainable.swift b/Libraries/Sources/KeychainStorage/Protocols/Keychainable.swift new file mode 100644 index 0000000..7b0b55c --- /dev/null +++ b/Libraries/Sources/KeychainStorage/Protocols/Keychainable.swift @@ -0,0 +1,27 @@ +// +// Keychainable.swift +// KeychainStorage +// +// Created by Javier Cicchelli on 11/12/2022. +// Copyright © 2022 Röck+Cöde. All rights reserved. +// + +import Foundation + +public protocol Keychainable { + func getData( + _ key: String, + ignoringAttributeSynchronizable: Bool + ) throws -> Data? + + func set( + _ value: Data, + key: String, + ignoringAttributeSynchronizable: Bool + ) throws + + func remove( + _ key: String, + ignoringAttributeSynchronizable: Bool + ) throws +}