public final class SimpleLoginService extends LoginService
Modifier and Type | Field and Description |
---|---|
private Map<String,char[]> |
passwordMap |
Constructor and Description |
---|
SimpleLoginService(Map<String,char[]> passwordMap)
Creates a new SimpleLoginService based on the given password map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(String name,
char[] password,
String server)
Attempts to authenticate the given username and password against the password map
|
addLoginListener, cancelAuthentication, fireLoginCanceled, fireLoginFailed, fireLoginStarted, fireLoginSucceeded, getServer, getSynchronous, getUserRoles, removeLoginListener, setServer, setSynchronous, startAuthentication
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
private Map<String,char[]> passwordMap
public SimpleLoginService(Map<String,char[]> passwordMap)
public boolean authenticate(String name, char[] password, String server) throws Exception
authenticate
in class LoginService
name
- usernamepassword
- passwordserver
- server (optional)true
on authentication successException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses