]> git.saurik.com Git - apple/security.git/blob - keychain/ot/OTOperationDependencies.m
Security-59306.61.1.tar.gz
[apple/security.git] / keychain / ot / OTOperationDependencies.m
1
2 #import "keychain/ot/OTOperationDependencies.h"
3
4 @implementation OTOperationDependencies
5 - (instancetype)initForContainer:(NSString*)containerName
6 contextID:(NSString*)contextID
7 stateHolder:(OTCuttlefishAccountStateHolder*)stateHolder
8 flagHandler:(id<OctagonStateFlagHandler>)flagHandler
9 sosAdapter:(id<OTSOSAdapter>)sosAdapter
10 octagonAdapter:(id<CKKSPeerProvider> _Nullable)octagonAdapter
11 authKitAdapter:(id<OTAuthKitAdapter>)authKitAdapter
12 deviceInfoAdapter:(id<OTDeviceInformationAdapter>)deviceInfoAdapter
13 viewManager:(CKKSViewManager*)viewManager
14 lockStateTracker:(CKKSLockStateTracker*)lockStateTracker
15 cuttlefishXPCWrapper:(CuttlefishXPCWrapper *)cuttlefishXPCWrapper
16 escrowRequestClass:(Class<SecEscrowRequestable>)escrowRequestClass
17 {
18 if((self = [super init])) {
19 _containerName = containerName;
20 _contextID = contextID;
21 _stateHolder = stateHolder;
22 _flagHandler = flagHandler;
23 _sosAdapter = sosAdapter;
24 _octagonAdapter = octagonAdapter;
25 _authKitAdapter = authKitAdapter;
26 _deviceInformationAdapter = deviceInfoAdapter;
27 _viewManager = viewManager;
28 _lockStateTracker = lockStateTracker;
29 _cuttlefishXPCWrapper = cuttlefishXPCWrapper;
30 _escrowRequestClass = escrowRequestClass;
31 }
32 return self;
33 }
34
35 @end