public class AccessPointConfiguration
extends java.lang.Object
AccessPoint
.Constructor and Description |
---|
AccessPointConfiguration(ej.ecom.wifi.AccessPoint accessPoint)
Instantiates an
AccessPointConfiguration with an access point. |
AccessPointConfiguration(java.lang.String ssid)
Instantiates an
AccessPointConfiguration with a Service Set IDentification (SSID). |
AccessPointConfiguration(java.lang.String ssid,
java.lang.String passphrase,
ej.ecom.wifi.SecurityMode securityMode)
Instantiates an
AccessPointConfiguration . |
Modifier and Type | Method and Description |
---|---|
ej.ecom.wifi.AccessPoint |
getAccessPoint()
Gets the accessPoint.
|
java.lang.String |
getPassphrase()
Gets the passphrase.
|
ej.ecom.wifi.SecurityMode |
getSecurityMode()
Gets the security mode.
|
java.lang.String |
getSSID()
Gets the Service Set IDentification (SSID).
|
void |
setAccessPoint(ej.ecom.wifi.AccessPoint accessPoint)
Sets the accessPoint.
|
void |
setPassphrase(java.lang.String passphrase)
Sets the passphrase.
|
void |
setSecurityMode(ej.ecom.wifi.SecurityMode securityMode)
Sets the securityMode.
|
void |
setSSID(java.lang.String ssid)
Sets the Service Set IDentification (SSID).
|
public AccessPointConfiguration(java.lang.String ssid) throws java.lang.NullPointerException
AccessPointConfiguration
with a Service Set IDentification (SSID).ssid
- the SSID to set, cannot be null
.java.lang.NullPointerException
- when ssid is null
.public AccessPointConfiguration(ej.ecom.wifi.AccessPoint accessPoint) throws java.lang.NullPointerException
AccessPointConfiguration
with an access point.accessPoint
- the AccessPoint to use, cannot be null
.java.lang.NullPointerException
- if accessPoint is null
or its SSID.public AccessPointConfiguration(java.lang.String ssid, java.lang.String passphrase, ej.ecom.wifi.SecurityMode securityMode)
AccessPointConfiguration
.ssid
- the SSID to set, cannot be null
.passphrase
- the passphrase to use, can be null
.securityMode
- the securityMode to use, can be null
.java.lang.NullPointerException
- when ssid is null
.public java.lang.String getPassphrase()
null
.public void setPassphrase(java.lang.String passphrase)
passphrase
- the passphrase to set, can be null
.public java.lang.String getSSID()
AccessPoint
is set, gets the AccessPoint
SSID.AccessPoint.getSSID()
public void setSSID(java.lang.String ssid) throws java.lang.NullPointerException
AccessPoint
is set, sets the AccessPoint
SSID.ssid
- the SSID to set, cannot be null
.java.lang.NullPointerException
- if the SSID is null
.public ej.ecom.wifi.SecurityMode getSecurityMode()
AccessPoint
is set, set the AccessPoint
Security ModeAccessPoint.getSecurityMode()
public void setSecurityMode(ej.ecom.wifi.SecurityMode securityMode)
AccessPoint
is set, sets the AccessPoint
securityMode.securityMode
- the securityMode to set, can be null
.public ej.ecom.wifi.AccessPoint getAccessPoint()
public void setAccessPoint(ej.ecom.wifi.AccessPoint accessPoint)
accessPoint
- the accessPoint to set, can be null
.