mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-08 18:47:23 +01:00
Integration.
This commit is contained in:
@@ -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