Use this class to manage Service Set Identifier (SSID) lists in conjunction with VPN On Demand rules. The instance of this class must be set as onDemandConnectionManager property of VPNUConfigurator if you want to apply these rules while setting up a VPN connection.
This class automatically detects new SSIDs and sends a VPNUNewSSIDFoundNotification notification with newly detected SSID's string as a value for key kVPNUNewSSIDNotificationKey in userInfo dictionary of this notification.
You must reconfigure your current VPN connection with new settings each time you want them to take effect.
Conforms: NSCoding
Extends: NSObject
Declared in: VPNUOnDemandConnectionManager.h
- (void)addSSIDsToTrusted:(NSArray *) list;
- (void)addSSIDsToUntrusted:(NSArray *) list;
- (void)addSSIDToTrusted:(NSString *)SSID;
- (void)addSSIDToUntrusted:(NSString *)SSID;
- (void)removeAllTrustedSSIDs;
- (void)removeAllUntrustedSSIDs;
- (void)removeSSID:(NSString *)SSID;
- (void)removeSSIDFromTrusted:(NSString *)SSID;
- (void)removeSSIDFromUntrusted:(NSString *)SSID;
@property (nonatomic, assign) BOOL connectOnCellular;
If set to YES, VPN connection is allowed for cellular networks, disallowed otherwise. Default value is YES.
@property (nonatomic, assign) BOOL connectOnEthernet;
If set to YES, VPN connection is allowed for wired Ethernet connections, disallowed otherwise. Default value is YES.
@property (nonatomic, assign) BOOL connectOnWireless;
If set to YES, VPN connection is allowed for wireless networks, disallowed otherwise. Default value is YES.
@property (nonatomic, assign) BOOL onDemandEnabled;
If set to YES, VPN connection auto-established when internet connection established. Default value is NO.
@property (readonly, copy) NSArray *SSIDList;
Gets a list of Service Set Identifiers (SSIDs).
@property (readonly, copy) NSArray *SSIDTrustedList;
Gets a list of trusted Service Set Identifiers (SSIDs).
@property (readonly, copy) NSArray *SSIDUntrustedList;
Gets a list of untrusted Service Set Identifiers (SSIDs).