com.eurotech.framework.net.wifi
Enum WifiSecurity

java.lang.Object
  extended by java.lang.Enum<WifiSecurity>
      extended by com.eurotech.framework.net.wifi.WifiSecurity
All Implemented Interfaces:
Serializable, Comparable<WifiSecurity>

public enum WifiSecurity
extends Enum<WifiSecurity>

Flags describing the security capabilities of an access point.


Enum Constant Summary
GROUP_CCMP
          Supports a group CCMP cipher.
GROUP_TKIP
          Supports a group TKIP cipher.
GROUP_WEP104
          Supports a group 104-bit WEP cipher.
GROUP_WEP40
          Supports a group 40-bit WEP cipher.
KEY_MGMT_802_1X
          Supports 802.1x key management.
KEY_MGMT_PSK
          Supports PSK key management.
NONE
          None
PAIR_CCMP
          Supports pairwise CCMP encryption.
PAIR_TKIP
          Supports pairwise TKIP encryption.
PAIR_WEP104
          Supports pairwise 104-bit WEP encryption.
PAIR_WEP40
          Supports pairwise 40-bit WEP encryption.
SECURITY_NONE
          Supports no encryption.
SECURITY_WEP
          Supports WEP encryption.
SECURITY_WPA
          Supports WPA encryption.
SECURITY_WPA_WPA2
          Supports WPA and WPA2 encryption.
SECURITY_WPA2
          Supports WPA2 encryption.
 
Method Summary
static int getCode(WifiSecurity security)
           
static WifiSecurity parseCode(int code)
           
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 java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final WifiSecurity NONE
None


PAIR_WEP40

public static final WifiSecurity PAIR_WEP40
Supports pairwise 40-bit WEP encryption.


PAIR_WEP104

public static final WifiSecurity PAIR_WEP104
Supports pairwise 104-bit WEP encryption.


PAIR_TKIP

public static final WifiSecurity PAIR_TKIP
Supports pairwise TKIP encryption.


PAIR_CCMP

public static final WifiSecurity PAIR_CCMP
Supports pairwise CCMP encryption.


GROUP_WEP40

public static final WifiSecurity GROUP_WEP40
Supports a group 40-bit WEP cipher.


GROUP_WEP104

public static final WifiSecurity GROUP_WEP104
Supports a group 104-bit WEP cipher.


GROUP_TKIP

public static final WifiSecurity GROUP_TKIP
Supports a group TKIP cipher.


GROUP_CCMP

public static final WifiSecurity GROUP_CCMP
Supports a group CCMP cipher.


KEY_MGMT_PSK

public static final WifiSecurity KEY_MGMT_PSK
Supports PSK key management.


KEY_MGMT_802_1X

public static final WifiSecurity KEY_MGMT_802_1X
Supports 802.1x key management.


SECURITY_NONE

public static final WifiSecurity SECURITY_NONE
Supports no encryption.


SECURITY_WEP

public static final WifiSecurity SECURITY_WEP
Supports WEP encryption.


SECURITY_WPA

public static final WifiSecurity SECURITY_WPA
Supports WPA encryption.


SECURITY_WPA2

public static final WifiSecurity SECURITY_WPA2
Supports WPA2 encryption.


SECURITY_WPA_WPA2

public static final WifiSecurity SECURITY_WPA_WPA2
Supports WPA and WPA2 encryption.

Method Detail

values

public static WifiSecurity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WifiSecurity c : WifiSecurity.values())
    System.out.println(c);

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

parseCode

public static WifiSecurity parseCode(int code)

getCode

public static int getCode(WifiSecurity security)


Copyright © 2013. All Rights Reserved.