]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSAuthKitHelpers.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / SecureObjectSync / SOSAuthKitHelpers.h
1 //
2 // SOSAuthKitHelpers.h
3 // Security
4 //
5
6 #ifndef SOSAuthKitHelpers_h
7 #define SOSAuthKitHelpers_h
8
9 #import "keychain/SecureObjectSync/SOSAccount.h"
10 #import "keychain/SecureObjectSync/SOSTrustedDeviceAttributes.h"
11
12 @interface SOSAuthKitHelpers : NSObject
13 + (NSString * _Nullable)machineID;
14 + (void) activeMIDs:(void(^_Nonnull)(NSSet <SOSTrustedDeviceAttributes *> * _Nullable activeMIDs, NSError * _Nullable error))complete;
15 + (bool) updateMIDInPeerInfo: (SOSAccount *_Nonnull) account;
16 + (bool) peerinfoHasMID: (SOSAccount *_Nonnull) account;
17 + (bool) accountIsHSA2;
18 - (id _Nullable) initWithActiveMIDS: (NSSet *_Nullable) theMidList;
19 - (bool) midIsValidInList: (NSString *_Nullable) machineId;
20 - (bool) serialIsValidInList: (NSString *_Nullable) serialNumber;
21 - (bool) isUseful;
22
23 #if __OBJC2__
24
25 @property (nonatomic, retain) NSSet * _Nullable midList;
26 @property (nonatomic, retain) NSSet * _Nullable machineIDs;
27 @property (nonatomic, retain) NSSet * _Nullable serialNumbers;
28
29 #endif /* __OBJC2__ */
30
31 @end
32
33 #endif /* SOSAuthKitHelpers_h */