2 #import <Foundation/Foundation.h>
3 #import "keychain/escrowrequest/generated_source/SecEscrowPendingRecord.h"
5 NS_ASSUME_NONNULL_BEGIN
7 @interface
SecEscrowPendingRecord (KeychainSupport
)
9 - (BOOL
)saveToKeychain
:(NSError
**)error
;
10 - (BOOL
)deleteFromKeychain
:(NSError
**)error
;
12 + (SecEscrowPendingRecord
* _Nullable
)loadFromKeychain
:(NSString
*)uuid error
:(NSError
**)error
;
13 + (NSArray
<SecEscrowPendingRecord
*>* _Nullable
)loadAllFromKeychain
:(NSError
**)error
;
16 @interface
SecEscrowPendingRecord (EscrowAttemptTimeout
)
17 - (BOOL
)escrowAttemptedWithinLastSeconds
:(NSTimeInterval
)timeInterval
;