Package org.jdesktop.swingx
Class JXLoginPane.NullLoginService
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.swingx.auth.LoginService
-
- org.jdesktop.swingx.JXLoginPane.NullLoginService
-
- Enclosing class:
- JXLoginPane
private static final class JXLoginPane.NullLoginService extends LoginService
Simple login service that allows everybody to login. This is useful in demos and allows us to avoid having to check for LoginService being null
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNullLoginService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(java.lang.String name, char[] password, java.lang.String server)This method is intended to be implemented by clients wishing to authenticate a user with a given password.booleanequals(java.lang.Object obj)inthashCode()-
Methods inherited from class org.jdesktop.swingx.auth.LoginService
addLoginListener, cancelAuthentication, getServer, getSynchronous, getUserRoles, removeLoginListener, setServer, setSynchronous, startAuthentication
-
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Method Detail
-
authenticate
public boolean authenticate(java.lang.String name, char[] password, java.lang.String server) throws java.lang.ExceptionDescription copied from class:LoginServiceThis method is intended to be implemented by clients wishing to authenticate a user with a given password. Clients should implement the authentication in a manner that the authentication can be cancelled at any time.- Specified by:
authenticatein classLoginService- Parameters:
name- usernamepassword- passwordserver- server (optional)- Returns:
trueon authentication success- Throws:
java.lang.Exception
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-