Remove username and password properties and declare methods for applying configuration and providing credentials

This commit is contained in:
Sergey Abramchuk
2017-04-24 18:32:59 +03:00
parent b792c9ba51
commit 447a90d16f

View File

@@ -7,9 +7,10 @@
//
#import "OpenVPNEvent.h"
#import "OpenVPNAdapter.h"
@class OpenVPNConfiguration;
@class OpenVPNCredentials;
@class NEPacketTunnelNetworkSettings;
// TODO: Add documentation to properties and methods
@@ -85,16 +86,6 @@ NS_SWIFT_NAME(handle(logMessage:));
*/
@interface OpenVPNAdapter (Provider)
/**
<#Description#>
*/
@property (strong, nonatomic, nullable) NSString *username;
/**
<#Description#>
*/
@property (strong, nonatomic, nullable) NSString *password;
/**
<#Description#>
*/
@@ -103,13 +94,24 @@ NS_SWIFT_NAME(handle(logMessage:));
/**
<#Description#>
@param settings <#settings description#>
@param configuration <#configuration description#>
@param error <#error description#>
@return <#return value description#>
*/
- (BOOL)configureUsingSettings:(nonnull NSData *)settings
error:(out NSError * __nullable * __nullable)error
NS_SWIFT_NAME(configure(using:));
- (BOOL)applyConfiguration:(nonnull OpenVPNConfiguration *)configuration
error:(out NSError * __nullable * __nullable)error
NS_SWIFT_NAME(apply(configuration:));
/**
<#Description#>
@param credentials <#credentials description#>
@param error <#error description#>
@return <#return value description#>
*/
- (BOOL)provideCredentials:(nonnull OpenVPNCredentials *)credentials
error:(out NSError * __nullable * __nullable)error
NS_SWIFT_NAME(provide(credentials:));
/**
Establish connection with the VPN server