GSSecurityModeSetting
@objc
public protocol GSSecurityModeSetting
Setting providing access to the Wifi access point security setup.
Note
This protocol is for Objective-C compatibility only.-
Tells if the setting value has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Access point current security mode.
Declaration
Swift
var mode: SecurityMode { get }
-
Sets the security mode to
.open
, disabling any security checks.Note
If the.open
mode is not supported this function do nothing (seesupportedModes
).Declaration
Swift
func open()
-
Sets the security mode to
.wpa2Secured
, and secures connection to the access point using a password.Note
if the
.wpa2Secured
mode is not supported this function do nothing (seesupportedModes
).Declaration
Swift
func secureWithWpa2(password: String) -> Bool
Parameters
password
password to secure the access point with
Return Value
true
if password is valid,false
otherwise -
Tells if a mode is supported.
Declaration
Swift
func isModeSupported(_ mode: SecurityMode) -> Bool
Parameters
mode
mode to check
Return Value
true
if the mode is supported