Integration.

This commit is contained in:
Max Goedjen committed 2021-11-06 19:53:43 -07:00
1 parent c15947e627
commit 0a6e71d7ce
7 files changed
+60 -16

No files matched your search

+3 -6
View File
@@ -11,6 +11,9 @@ public protocol SecretStore: ObservableObject, Identifiable {
func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> Data
// TODO: MOVE TO SEPARATE PROTOCOL?
func persistAuthentication(secret: SecretType, forDuration: TimeInterval) throws
}
public protocol SecretStoreModifiable: SecretStore {
@@ -21,12 +24,6 @@ public protocol SecretStoreModifiable: SecretStore {
}
public protocol SecretStoreAuthenticationPersistable: SecretStore {
func persistAuthentication(secret: SecretType, forDuration: TimeInterval) throws
}
extension NSNotification.Name {
static let secretStoreUpdated = NSNotification.Name("com.maxgoedjen.Secretive.secretStore.updated")