Class EduTeacherLoginService
java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.swingx.auth.LoginService
be.gaudry.swing.authentication.SSOLoginService
be.gaudry.swing.edu.authentication.EduTeacherLoginService
EduTeacherLoginService allows to load a login name and password from the persistent layer
to try to authenticate, as single sign one, for the teacher tasks of EducaBrol.
Provided by the broldev.edu.teacher.swing project.
- Since:
- 1.0 Oct 21, 2010, broldev.edu.teacher.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.1 Nov 18, 2010
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateOnce(String name, char[] password, String server)
This method is intended to be implemented by clients wishing to authenticate a user with a given password.Methods inherited from class be.gaudry.swing.authentication.SSOLoginService
authenticate, isAuthenticated, logOff
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
-
Constructor Details
-
EduTeacherLoginService
public EduTeacherLoginService()
-
-
Method Details
-
authenticateOnce
Description copied from class:SSOLoginService
This method is intended to be implemented by clients wishing to authenticate a user with a given password. \nThis mechanism is called only on the "unauthenticated" state. To return to the initial "unauthenticated" state, you may call theSSOLoginService.logOff()
method.- Specified by:
authenticateOnce
in classSSOLoginService
- Parameters:
name
- user namepassword
- user passwordserver
- server (optional)- Returns:
true
on authentication success- Throws:
Exception
- See Also:
SSOLoginService.logOff()
,SSOLoginService.isAuthenticated()
-