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