mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-08 11:35:59 +01:00
Integration.
This commit is contained in:
7 files changed
+60
-16
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user