swingx
Version 2005-08-19

org.jdesktop.swingx.auth
Class JAASLoginService

java.lang.Object
  extended by org.jdesktop.swingx.auth.LoginService
      extended by org.jdesktop.swingx.auth.JAASLoginService

public class JAASLoginService
extends LoginService

JAASLoginService implements a LoginService that uses JAAS for authentication. JAASLoginService uses the server name as name of the configuration for JAAS.


Constructor Summary
JAASLoginService(String server)
          Constructor for JAASLoginService
 
Method Summary
 boolean authenticate(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 org.jdesktop.swingx.auth.LoginService
addLoginListener, cancelAuthentication, getServer, getSynchronous, getUserRoles, removeLoginListener, setServer, setSynchronous, startAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASLoginService

public JAASLoginService(String server)
Constructor for JAASLoginService

Parameters:
server - server name that is also used for the JAAS config name
Method Detail

authenticate

public boolean authenticate(String name,
                            char[] password,
                            String server)
                     throws Exception
Description copied from class: LoginService
This 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:
authenticate in class LoginService
Parameters:
name - username
password - password
server - server (optional)
Returns:
true on authentication success
Throws:
Exception

swingx
Version 2005-08-19