|
||||||||||
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.
Field Summary | |
---|---|
protected LoginContext |
loginContext
|
Constructor Summary | |
---|---|
JAASLoginService()
Default JavaBeans constructor |
|
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. |
LoginContext |
getLoginContext()
Returns the LoginContext used during the authentication
process. |
Subject |
getSubject()
Returns the Subject representing the authenticated
individual, or null if the user has not yet been
successfully authenticated. |
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 |
Field Detail |
---|
protected LoginContext loginContext
Constructor Detail |
---|
public JAASLoginService(String server)
server
- server name that is also used for the JAAS config namepublic JAASLoginService()
Method Detail |
---|
public boolean authenticate(String name, char[] password, String server) throws Exception
LoginService
authenticate
in class LoginService
name
- usernamepassword
- passwordserver
- server (optional)
true
on authentication success
Exception
public LoginContext getLoginContext()
LoginContext
used during the authentication
process.
public Subject getSubject()
Subject
representing the authenticated
individual, or null
if the user has not yet been
successfully authenticated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |