mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
Objective-C
37 lines
1.4 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSDeviceProvisioningCodeService;
|
|
@class OWSDeviceProvisioningService;
|
|
|
|
@interface OWSDeviceProvisioner : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithMyPublicKey:(NSData *)myPublicKey
|
|
myPrivateKey:(NSData *)myPrivateKey
|
|
theirPublicKey:(NSData *)theirPublicKey
|
|
theirEphemeralDeviceId:(NSString *)ephemeralDeviceId
|
|
accountIdentifier:(NSString *)accountIdentifier
|
|
profileKey:(NSData *)profileKey
|
|
readReceiptsEnabled:(BOOL)areReadReceiptsEnabled
|
|
provisioningCodeService:(OWSDeviceProvisioningCodeService *)provisioningCodeService
|
|
provisioningService:(OWSDeviceProvisioningService *)provisioningService NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)initWithMyPublicKey:(NSData *)myPublicKey
|
|
myPrivateKey:(NSData *)myPrivateKey
|
|
theirPublicKey:(NSData *)theirPublicKey
|
|
theirEphemeralDeviceId:(NSString *)ephemeralDeviceId
|
|
accountIdentifier:(NSString *)accountIdentifier
|
|
profileKey:(NSData *)profileKey
|
|
readReceiptsEnabled:(BOOL)areReadReceiptsEnabled;
|
|
|
|
- (void)provisionWithSuccess:(void (^)(void))successCallback failure:(void (^)(NSError *))failureCallback;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|