Defined the Keychainable protocol.

This commit is contained in:
Javier Cicchelli 2022-12-11 18:55:02 +01:00
parent 365d92f216
commit 75204148b0

View File

@ -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
}