]> git.saurik.com Git - apple/security.git/blob - keychain/ot/categories/OTAccountMetadataClassC+KeychainSupport.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / ot / categories / OTAccountMetadataClassC+KeychainSupport.h
1
2 #if OCTAGON
3
4 #import "keychain/ot/proto/generated_source/OTAccountMetadataClassC.h"
5
6 NS_ASSUME_NONNULL_BEGIN
7
8 @interface OTAccountMetadataClassC (KeychainSupport)
9
10 - (BOOL)saveToKeychainForContainer:(NSString*)containerName contextID:(NSString*)contextID error:(NSError**)error;
11
12 + (BOOL) deleteFromKeychainForContainer:(NSString*)containerName
13 contextID:(NSString*)contextID error:(NSError**)error __attribute__((swift_error(nonnull_error)));
14
15 + (OTAccountMetadataClassC* _Nullable)loadFromKeychainForContainer:(NSString*)containerName contextID:(NSString*)contextID error:(NSError**)error;
16 @end
17
18 @class TPSyncingPolicy;
19 @interface OTAccountMetadataClassC (NSSecureCodingSupport)
20 - (void)setTPSyncingPolicy:(TPSyncingPolicy* _Nullable)policy;
21 - (TPSyncingPolicy* _Nullable)getTPSyncingPolicy;
22 @end
23
24 NS_ASSUME_NONNULL_END
25
26 #endif // OCTAGON