Constructor and Description |
---|
UsernamePasswordAccount(String username,
String password)
Construct a new UsernamePasswordAccount, using a given username and password.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getUsername()
Retrieve username for this account.
|
public boolean authenticate(Authentication a)
Account
authenticate
in interface Account
a
- authentification object to be checked.public String getUsername()
Copyright © 2013. All Rights Reserved.