SecurityModeSetting

public protocol SecurityModeSetting

Setting providing access to the Wifi access point security setup.

  • 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 (see supportedModes).

    Declaration

    Swift

    func open()
  • Sets the security mode to .wpa2Secured, and secures connection to the access point using a password. Password validation is checked first (see WifiPasswordUtil.isValid, and nothing is done if password is not valid.

    Note

    If the .wpa2Secured mode is not supported this function do nothing (see supportedModes).

    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

  • Supported modes.

    Declaration

    Swift

    var supportedModes: Set<SecurityMode> { get }