Search in sources :

Example 11 with WifiSecurity

use of org.eclipse.kura.net.wifi.WifiSecurity in project kura by eclipse.

the class WifiAccessPointImpl method toString.

@Override
public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("ssid=").append(this.ssid);
    if (this.hardwareAddress != null && this.hardwareAddress.length > 0) {
        sb.append(" :: hardwareAddress=").append(NetworkUtil.macToString(this.hardwareAddress));
    }
    sb.append(" :: frequency=").append(this.frequency).append(" :: mode=").append(this.mode);
    if (this.bitrate != null && this.bitrate.size() > 0) {
        sb.append(" :: bitrate=");
        for (Long rate : this.bitrate) {
            sb.append(rate).append(" ");
        }
    }
    sb.append(" :: strength=").append(this.strength);
    if (this.wpaSecurity != null && this.wpaSecurity.size() > 0) {
        sb.append(" :: wpaSecurity=");
        for (WifiSecurity security : this.wpaSecurity) {
            sb.append(security).append(" ");
        }
    }
    if (this.rsnSecurity != null && this.rsnSecurity.size() > 0) {
        sb.append(" :: rsnSecurity=");
        for (WifiSecurity security : this.rsnSecurity) {
            sb.append(security).append(" ");
        }
    }
    return sb.toString();
}
Also used : WifiSecurity(org.eclipse.kura.net.wifi.WifiSecurity)

Aggregations

WifiSecurity (org.eclipse.kura.net.wifi.WifiSecurity)11 KuraException (org.eclipse.kura.KuraException)5 Properties (java.util.Properties)4 WifiHotspotInfo (org.eclipse.kura.net.wifi.WifiHotspotInfo)4 StringTokenizer (java.util.StringTokenizer)3 WifiAccessPoint (org.eclipse.kura.net.wifi.WifiAccessPoint)3 WifiBgscan (org.eclipse.kura.net.wifi.WifiBgscan)3 WifiCiphers (org.eclipse.kura.net.wifi.WifiCiphers)3 WifiConfig (org.eclipse.kura.net.wifi.WifiConfig)3 WifiMode (org.eclipse.kura.net.wifi.WifiMode)3 WifiRadioMode (org.eclipse.kura.net.wifi.WifiRadioMode)3 BufferedReader (java.io.BufferedReader)2 File (java.io.File)2 FileInputStream (java.io.FileInputStream)2 InputStreamReader (java.io.InputStreamReader)2 ArrayList (java.util.ArrayList)2 IOException (java.io.IOException)1 UnknownHostException (java.net.UnknownHostException)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1