Package ej.net.util.wifi
Class SecurityUtil
- java.lang.Object
-
- ej.net.util.wifi.SecurityUtil
-
public class SecurityUtil extends Object
An utility class to handle security mode.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityModegetSecurityMode(String securityMode)Gets the SecurityMode value from its String name.static StringgetSecurityModeText(SecurityMode securityMode)Gets the text value of a security mode.
-
-
-
Method Detail
-
getSecurityModeText
public static String getSecurityModeText(@NonNull SecurityMode securityMode)
Gets the text value of a security mode.- Parameters:
securityMode- the security mode.- Returns:
- the String value of the security mode,
nullif not is found.
-
getSecurityMode
public static SecurityMode getSecurityMode(@NonNull String securityMode)
Gets the SecurityMode value from its String name.- Parameters:
securityMode- the security mode, can benull.- Returns:
- the String value of the security mode,
nullif not found.
-
-