# Enum WiFiSecurity

java.lang.Object
java.lang.Enum<WiFiSecurity>
com.codename1.io.wifi.WiFiSecurity

All Implemented Interfaces:
  `Comparable<WiFiSecurity>`

public enum WiFiSecurity extends Enum<WiFiSecurity>
Security mode advertised by an access point. Used both for scan results and when calling `WiFi.connect(...)`. The value passed to `connect` must match the AP's actual security mode.

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `EAP`
  Enterprise EAP (RADIUS-backed).
  `OPEN`
  Open network, no encryption.
  `UNKNOWN`
  Unknown or platform did not report a security mode.
  `WEP`
  Legacy WEP.
  `WPA_PSK`
  WPA / WPA2 personal (PSK).
  `WPA3_SAE`
  WPA3 personal (SAE).

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static WiFiSecurity`
  `valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static WiFiSecurity[]`
  `values()`
  Returns an array containing the constants of this enum type, in the order they are declared.

  ### Methods inherited from class Enum

  `clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf`

  ### Methods inherited from class Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### OPEN

    public static final WiFiSecurity OPEN
    Open network, no encryption.

  - ### WEP

    public static final WiFiSecurity WEP
    Legacy WEP. Considered broken; some platforms refuse to connect at all.

  - ### WPA_PSK

    public static final WiFiSecurity WPA_PSK
    WPA / WPA2 personal (PSK).

  - ### WPA3_SAE

    public static final WiFiSecurity WPA3_SAE
    WPA3 personal (SAE).

  - ### EAP

    public static final WiFiSecurity EAP
    Enterprise EAP (RADIUS-backed). Not directly supported by `connect`; applications must supply an enterprise configuration through platform hooks if they need it.

  - ### UNKNOWN

    public static final WiFiSecurity UNKNOWN
    Unknown or platform did not report a security mode.

- ## Method Details

  - ### values

    public static WiFiSecurity[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.
    Returns:
      an array containing the constants of this enum type, in the order they are declared

  - ### valueOf

    public static WiFiSecurity valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
      `name` - the name of the enum constant to be returned.
    Returns:
      the enum constant with the specified name
    Throws:
      `IllegalArgumentException` - if this enum type has no constant with the specified name
      `NullPointerException` - if the argument is null