public class Auth
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
password |
private java.lang.String |
username |
Constructor and Description |
---|
Auth(java.lang.String username,
java.lang.String password)
Create a new Authenication token
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPassword()
Gets the Password
|
java.lang.String |
getUsername()
Gets the Username
|
void |
setPassword(java.lang.String password)
Sets a new Password
|
void |
setUsername(java.lang.String username)
Sets a new Username
|
org.restlet.data.ChallengeResponse |
toChallenge()
Helper method to create the Authentication token for Restlet
|
public Auth(java.lang.String username, java.lang.String password)
username
- Usernamepassword
- Passwordpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- the Username to setpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- the Password to setpublic org.restlet.data.ChallengeResponse toChallenge()