mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Remove username and password properties and declare methods for applying configuration and providing credentials
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user