public final class SimpleLoginService extends LoginService
| 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, getServer, getSynchronous, getUserRoles, removeLoginListener, setServer, setSynchronous, startAuthenticationaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic boolean authenticate(String name, char[] password, String server) throws Exception
authenticate in class LoginServicename - usernamepassword - passwordserver - server (optional)true on authentication successExceptionCopyright © 2017. All Rights Reserved.