public class Credentials
extends java.lang.Object
Contains the username and token (or password) to be used to login to a Liberator or other remote Caplin server.
Constructor and Description |
---|
Credentials(java.lang.String username,
java.lang.String token)
Creates an instance of Credentials with the specified username and
token.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getToken()
The token (or password) to be used to login.
|
java.lang.String |
getUsername()
Gets the username to be used to login.
|
java.lang.String |
toString() |
public Credentials(java.lang.String username, java.lang.String token)
username
- The uesrname to be used to login.token
- The token (or password) to be used to login.java.lang.IllegalArgumentException
- If either the username or token
arguments are null.public final java.lang.String getUsername()
public final java.lang.String getToken()
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support