]> git.saurik.com Git - apple/security.git/blob - keychain/escrowrequest/SecEscrowPendingRecord+KeychainSupport.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / escrowrequest / SecEscrowPendingRecord+KeychainSupport.h
1
2 #import <Foundation/Foundation.h>
3 #import "keychain/escrowrequest/generated_source/SecEscrowPendingRecord.h"
4
5 NS_ASSUME_NONNULL_BEGIN
6
7 @interface SecEscrowPendingRecord (KeychainSupport)
8
9 - (BOOL)saveToKeychain:(NSError**)error;
10 - (BOOL)deleteFromKeychain:(NSError**)error;
11
12 + (SecEscrowPendingRecord* _Nullable)loadFromKeychain:(NSString*)uuid error:(NSError**)error;
13 + (NSArray<SecEscrowPendingRecord*>* _Nullable)loadAllFromKeychain:(NSError**)error;
14 @end
15
16 @interface SecEscrowPendingRecord (EscrowAttemptTimeout)
17 - (BOOL)escrowAttemptedWithinLastSeconds:(NSTimeInterval)timeInterval;
18 @end
19
20 NS_ASSUME_NONNULL_END
21