2012-01-05 05:47:44 +08:00
|
|
|
package com.phonegap;
|
|
|
|
|
|
|
|
/**
|
2012-01-06 00:26:54 +08:00
|
|
|
* The Class AuthenticationToken defines the userName and password to be used for authenticating a web resource
|
2012-01-05 05:47:44 +08:00
|
|
|
*/
|
|
|
|
public class AuthenticationToken {
|
2012-01-06 00:26:54 +08:00
|
|
|
private String userName;
|
|
|
|
private String password;
|
2012-01-05 05:47:44 +08:00
|
|
|
|
|
|
|
/**
|
2012-01-06 00:26:54 +08:00
|
|
|
* Gets the user name.
|
2012-01-05 05:47:44 +08:00
|
|
|
*
|
2012-01-06 00:26:54 +08:00
|
|
|
* @return the user name
|
2012-01-05 05:47:44 +08:00
|
|
|
*/
|
2012-01-06 00:26:54 +08:00
|
|
|
public String getUserName() {
|
|
|
|
return userName;
|
2012-01-05 05:47:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2012-01-06 00:26:54 +08:00
|
|
|
* Sets the user name.
|
2012-01-05 05:47:44 +08:00
|
|
|
*
|
2012-01-06 00:26:54 +08:00
|
|
|
* @param userName
|
|
|
|
* the new user name
|
2012-01-05 05:47:44 +08:00
|
|
|
*/
|
2012-01-06 00:26:54 +08:00
|
|
|
public void setUserName(String userName) {
|
|
|
|
this.userName = userName;
|
2012-01-05 05:47:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2012-01-06 00:26:54 +08:00
|
|
|
* Gets the password.
|
2012-01-05 05:47:44 +08:00
|
|
|
*
|
2012-01-06 00:26:54 +08:00
|
|
|
* @return the password
|
2012-01-05 05:47:44 +08:00
|
|
|
*/
|
2012-01-06 00:26:54 +08:00
|
|
|
public String getPassword() {
|
|
|
|
return password;
|
2012-01-05 05:47:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2012-01-06 00:26:54 +08:00
|
|
|
* Sets the password.
|
2012-01-05 05:47:44 +08:00
|
|
|
*
|
2012-01-06 00:26:54 +08:00
|
|
|
* @param password
|
|
|
|
* the new password
|
2012-01-05 05:47:44 +08:00
|
|
|
*/
|
2012-01-06 00:26:54 +08:00
|
|
|
public void setPassword(String password) {
|
|
|
|
this.password = password;
|
2012-01-05 05:47:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-06 00:26:54 +08:00
|
|
|
|
|
|
|
|
2012-01-05 05:47:44 +08:00
|
|
|
}
|