diff options
author | Chung-yih Wang <cywang@google.com> | 2009-07-06 11:22:18 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-07-06 11:22:18 -0700 |
commit | 58c714c41ac3799b0b408affd9804056070d358c (patch) | |
tree | 24bed578ce9894c06b791261fce76e33451f4600 /wifi/java/android | |
parent | f6a6cff234e164874233de3618ab98b4fb00efb7 (diff) | |
parent | 699ca3f2518360ea3250ff5a0e5d39e122c64a91 (diff) | |
download | frameworks_base-58c714c41ac3799b0b408affd9804056070d358c.zip frameworks_base-58c714c41ac3799b0b408affd9804056070d358c.tar.gz frameworks_base-58c714c41ac3799b0b408affd9804056070d358c.tar.bz2 |
am 699ca3f2: Add password field for WiFi configuration.
Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91'
* commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91':
Add password field for WiFi configuration.
Diffstat (limited to 'wifi/java/android')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 1b7c0cd..eda2f2d 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -49,6 +49,8 @@ public class WifiConfiguration implements Parcelable { /** {@hide} */ public static final String anonymousIdentityVarName = "anonymous_identity"; /** {@hide} */ + public static final String passwordVarName = "password"; + /** {@hide} */ public static final String clientCertVarName = "client_cert"; /** {@hide} */ public static final String caCertVarName = "ca_cert"; @@ -278,6 +280,8 @@ public class WifiConfiguration implements Parcelable { public String identity; /** {@hide} */ public String anonymousIdentity; + /** {@hide} */ + public String password; /** The path of the client certificate file. * {@hide} */ @@ -312,6 +316,7 @@ public class WifiConfiguration implements Parcelable { eap = null; identity = null; anonymousIdentity = null; + password = null; clientCert = null; caCert = null; privateKey = null; @@ -402,6 +407,10 @@ public class WifiConfiguration implements Parcelable { if (this.anonymousIdentity != null) { sbuf.append(anonymousIdentity); } + sbuf.append('\n').append(" Password: "); + if (this.password != null) { + sbuf.append(password); + } sbuf.append('\n').append(" ClientCert: "); if (this.clientCert != null) { sbuf.append(clientCert); @@ -479,6 +488,7 @@ public class WifiConfiguration implements Parcelable { dest.writeString(eap); dest.writeString(identity); dest.writeString(anonymousIdentity); + dest.writeString(password); dest.writeString(clientCert); dest.writeString(caCert); dest.writeString(privateKey); @@ -508,6 +518,7 @@ public class WifiConfiguration implements Parcelable { config.eap = in.readString(); config.identity = in.readString(); config.anonymousIdentity = in.readString(); + config.password = in.readString(); config.clientCert = in.readString(); config.caCert = in.readString(); config.privateKey = in.readString(); |