diff options
author | Yuhao Zheng <yuhaozheng@google.com> | 2014-05-23 09:07:22 -0700 |
---|---|---|
committer | Yuhao Zheng <yuhaozheng@google.com> | 2014-05-23 09:25:45 -0700 |
commit | bd9af355975e0feb54385c4615b9f9314b52dba7 (patch) | |
tree | 0f7078fa851816005defcec73061687cc8160ed1 /wifi/java/android/net/wifi/passpoint | |
parent | c33fb2b5c014f37ce36dbc12eff1e969562f7d50 (diff) | |
download | frameworks_base-bd9af355975e0feb54385c4615b9f9314b52dba7.zip frameworks_base-bd9af355975e0feb54385c4615b9f9314b52dba7.tar.gz frameworks_base-bd9af355975e0feb54385c4615b9f9314b52dba7.tar.bz2 |
Update Hotspot 2.0 SDK APIs
Change-Id: I0528b378219e03f896497127b5c4b191bf014141
Diffstat (limited to 'wifi/java/android/net/wifi/passpoint')
-rw-r--r-- | wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java b/wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java index 9a633b4..090ac56 100644 --- a/wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java +++ b/wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java @@ -36,6 +36,7 @@ public class WifiPasspointCredential implements Parcelable { private String mCredentialName; private String mUpdateIdentifier; private String mSubscriptionUpdateMethod; + private WifiEnterpriseConfig mEnterpriseConfig; private String mType; private String mInnerMethod; private String mCertType; @@ -93,17 +94,15 @@ public class WifiPasspointCredential implements Parcelable { * Constructor * @param realm Realm of the passpoint credential * @param fqdn Fully qualified domain name (FQDN) of the credential - * @param config Credential information, must be either EAP-TLS or EAP-TTLS + * @param config Enterprise config, must be either EAP-TLS or EAP-TTLS * @see WifiEnterpriseConfig */ public WifiPasspointCredential(String realm, String fqdn, WifiEnterpriseConfig config) { mRealm = realm; switch (config.getEapMethod()) { case WifiEnterpriseConfig.Eap.TLS: - // TODO; - break; case WifiEnterpriseConfig.Eap.TTLS: - // TODO; + mEnterpriseConfig = new WifiEnterpriseConfig(config); break; default: // ignore @@ -299,11 +298,21 @@ public class WifiPasspointCredential implements Parcelable { } /** - * Get EAP method of this Passpoint credential. - * @return EAP method, refer to {@link WifiEnterpriseConfig.Eap} for possible return values + * Get enterprise config of this Passpoint credential. + * @return Enterprise config + * @see WifiEnterpriseConfig */ - public int getEapMethod() { - return 0; + public WifiEnterpriseConfig getEnterpriseConfig() { + return new WifiEnterpriseConfig(mEnterpriseConfig); + } + + /** + * Set enterprise config of this Passpoint credential. + * @param config Enterprise config, must be either EAP-TLS or EAP-TTLS + * @see WifiEnterpriseConfig + */ + public void setEnterpriseConfig(WifiEnterpriseConfig config) { + // TODO } /** @hide */ @@ -316,10 +325,7 @@ public class WifiPasspointCredential implements Parcelable { return mCertSha256Fingerprint; } - /** - * Get the user name of this Passpoint credential, for EAP-TTLS only. - * @return user name - */ + /** @hide */ public String getUserName() { return mUsername; } @@ -345,31 +351,17 @@ public class WifiPasspointCredential implements Parcelable { return mMnc; } - /** - * Get the CA root certificate path of this Passpoint credential. - * @return CA root certificate path - */ + /** @hide */ public String getCaRootCertPath() { return mCaRootCert; } - /** - * Get the client certificate path of this Passpoint credential, for EAP-TLS only. - * @return client certificate path - */ + /** @hide */ public String getClientCertPath() { return mClientCert; } /** - * Set credential information of this Passpoint credential. - * @param config Credential information, must be either EAP-TLS or EAP-TTLS - */ - public void setCredential(WifiEnterpriseConfig config) { - // TODO - } - - /** * Get the realm of this Passpoint credential. * @return Realm */ |