|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.feide.moria.directory.Credentials
public class Credentials
Represents a set of user credentials, that is, a username/password pair. Used
for Moria authentication methods, and may be expanded to support other types
of credentials in a future version
Note that this is a subset of the functionality offered by the Moria 1
Credentials
class.
Field Summary | |
---|---|
private java.lang.String |
password
Internal representation of the user's password. |
private java.lang.String |
username
Internal representation of the username. |
Constructor Summary | |
---|---|
Credentials(java.lang.String username,
java.lang.String password)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getPassword()
Retrieves the password part of the credentials. |
java.lang.String |
getUsername()
Retrieves the username part of the credentials. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String username
private final java.lang.String password
Constructor Detail |
---|
public Credentials(java.lang.String username, java.lang.String password)
username
- The username. May not be null
or an empty
string.password
- The user's password. May not be null
or an
empty string.
java.lang.IllegalArgumentException
- If username
or password
is null
or an empty string.Method Detail |
---|
public final java.lang.String getUsername()
String
containing the username.public final java.lang.String getPassword()
String
containing the password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |