public class WifiNetworkAdapter extends Object
Constructor and Description |
---|
WifiNetworkAdapter(Context context,
OSUManager osuManager) |
public WifiNetworkAdapter(Context context, OSUManager osuManager)
public void initialize()
public void networkConfigChange(WifiConfiguration configuration)
public Collection<HomeSP> getLoadedSPs()
public HomeSP addSP(MOTree instanceTree) throws IOException, SAXException
IOException
SAXException
public void removeSP(String fqdn) throws IOException
IOException
public HomeSP modifySP(HomeSP homeSP, Collection<MOData> mods) throws IOException
IOException
public Network getCurrentNetwork()
public WifiConfiguration getActiveWifiConfig()
public WifiInfo getConnectionInfo()
public PasspointMatch matchProviderWithCurrentNetwork(String fqdn)
public WifiConfiguration getWifiConfig(HomeSP homeSP)
public WifiConfiguration getActivePasspointNetwork()
public HomeSP getCurrentSP()
public void doIconQuery(long bssid, String fileName)
public Integer addNetwork(HomeSP homeSP, Map<OSUCertType,List<X509Certificate>> certs, PrivateKey privateKey, Network osuNetwork) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void updateNetwork(HomeSP homeSP, X509Certificate caCert, List<X509Certificate> clientCerts, PrivateKey privateKey) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public Integer connect(OSUInfo osuInfo, String info) throws IOException
osuInfo
- The OSU info object that defines the parameters for the network. An OSU
network is either an open network, or, if the OSU NAI is set, an "OSEN"
network, which is an anonymous EAP-TLS network with special keys.info
- An opaque string that is passed on to any user notification. The string is used
for the name of the service provider.IOException
- Issues:
1. The network id is not returned. addNetwork cannot be called from here since the method
runs in the context of the app and doesn't have the appropriate permission.
2. The connection is not immediately usable if the network was not previously selected
manually.public void deleteNetwork(int id)
public void setHoldoffTime(long holdoff, boolean ess)
holdoff
- hold off time in millisecondsess
- set if the hold off pertains to an ESS rather than a BSS