summaryrefslogtreecommitdiffstats
path: root/obex/javax/obex/PasswordAuthentication.java
diff options
context:
space:
mode:
authorTao Liejun <a19884@motorola.com>2009-07-02 19:29:09 +0800
committerNick Pelly <npelly@google.com>2009-07-07 13:53:11 -0700
commit3998bf009acaf8cde4d7f837f8b8e41ae0a65141 (patch)
tree76d91113f5c059f685da151177d53cc8f6383137 /obex/javax/obex/PasswordAuthentication.java
parentd719890cab1eec09cbf556a3b86cc02b0f0ef8d7 (diff)
downloadframeworks_base-3998bf009acaf8cde4d7f837f8b8e41ae0a65141.zip
frameworks_base-3998bf009acaf8cde4d7f837f8b8e41ae0a65141.tar.gz
frameworks_base-3998bf009acaf8cde4d7f837f8b8e41ae0a65141.tar.bz2
Obex library cleanup, third pass
- Change variable namings - Remove interface public modifier - Move 2 duplicate methods to ObexSession - Removed unused code and variables - Use static variables for some protocol defines
Diffstat (limited to 'obex/javax/obex/PasswordAuthentication.java')
-rw-r--r--obex/javax/obex/PasswordAuthentication.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/obex/javax/obex/PasswordAuthentication.java b/obex/javax/obex/PasswordAuthentication.java
index 49833fe..e81a861 100644
--- a/obex/javax/obex/PasswordAuthentication.java
+++ b/obex/javax/obex/PasswordAuthentication.java
@@ -37,11 +37,11 @@ package javax.obex;
*
* @hide
*/
-public class PasswordAuthentication {
+public final class PasswordAuthentication {
- private byte[] userName;
+ private byte[] mUserName;
- private byte[] password;
+ private final byte[] mPassword;
/**
* Creates a new <code>PasswordAuthentication</code> with the user name
@@ -51,17 +51,17 @@ public class PasswordAuthentication {
*
* @param password the password to include in the response
*
- * @exception NullPointerException if <code>password</code> is
+ * @throws NullPointerException if <code>password</code> is
* <code>null</code>
*/
- public PasswordAuthentication(byte[] userName, byte[] password) {
+ public PasswordAuthentication(final byte[] userName, final byte[] password) {
if (userName != null) {
- this.userName = new byte[userName.length];
- System.arraycopy(userName, 0, this.userName, 0, userName.length);
+ mUserName = new byte[userName.length];
+ System.arraycopy(userName, 0, mUserName, 0, userName.length);
}
- this.password = new byte[password.length];
- System.arraycopy(password, 0, this.password, 0, password.length);
+ mPassword = new byte[password.length];
+ System.arraycopy(password, 0, mPassword, 0, password.length);
}
/**
@@ -71,7 +71,7 @@ public class PasswordAuthentication {
* @return the user name
*/
public byte[] getUserName() {
- return this.userName;
+ return mUserName;
}
/**
@@ -80,6 +80,6 @@ public class PasswordAuthentication {
* @return the password
*/
public byte[] getPassword() {
- return this.password;
+ return mPassword;
}
}