|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.framework.connection.UsernamePasswordAccount
public class UsernamePasswordAccount
This class represents an account that requires you to send username and password to login. They are checked by comparing them to a given username and password.
Constructor Summary | |
---|---|
UsernamePasswordAccount(java.lang.String username,
java.lang.String password)
Construct a new UsernamePasswordAccount, using a given username and password. |
Method Summary | |
---|---|
boolean |
authenticate(Authentication a)
The contract of this method is that it is supposed to check if the Authentication object auth is sufficient to log into the account represented by the implementing class. |
java.lang.String |
getUsername()
Retrieve username for this account. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsernamePasswordAccount(java.lang.String username, java.lang.String password)
username
- password
- Method Detail |
---|
public boolean authenticate(Authentication a)
Account
authenticate
in interface Account
a
- authentification object to be checked.
public java.lang.String getUsername()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |