|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.beans.AbstractBean
org.jdesktop.swingx.auth.LoginService
org.jdesktop.swingx.auth.JAASLoginService
public class JAASLoginService
JAASLoginService implements a LoginService that uses JAAS for authentication. JAASLoginService uses the server name as name of the configuration for JAAS.
| Constructor Summary | |
|---|---|
JAASLoginService()
Default JavaBeans constructor |
|
JAASLoginService(java.lang.String server)
Constructor for JAASLoginService |
|
| Method Summary | |
|---|---|
boolean |
authenticate(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. |
| 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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAASLoginService(java.lang.String server)
server - server name that is also used for the JAAS config namepublic JAASLoginService()
| Method Detail |
|---|
public boolean authenticate(java.lang.String name,
char[] password,
java.lang.String server)
throws java.lang.Exception
LoginService
authenticate in class LoginServicename - usernamepassword - passwordserver - server (optional)
true on authentication success
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||