|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.plus.jaas.JAASLoginService
public class JAASLoginService
JAASLoginService
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
|---|
LifeCycle.Listener |
| Field Summary | |
|---|---|
protected String |
_callbackHandlerClass
|
protected JAASUserPrincipal |
_defaultUser
|
protected IdentityService |
_identityService
|
protected String |
_loginModuleName
|
protected String |
_realmName
|
protected String[] |
_roleClassNames
|
static String |
DEFAULT_ROLE_CLASS_NAME
|
static String[] |
DEFAULT_ROLE_CLASS_NAMES
|
| Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| Constructor Summary | |
|---|---|
JAASLoginService()
Constructor. |
|
JAASLoginService(String name)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doStart()
|
IdentityService |
getIdentityService()
Get the identityService. |
String |
getName()
Get the name of the realm. |
String[] |
getRoleClassNames()
|
UserIdentity |
login(String username,
Object credentials)
Login a user. |
void |
logout(UserIdentity user)
|
void |
setCallbackHandlerClass(String classname)
|
void |
setIdentityService(IdentityService identityService)
Set the identityService. |
void |
setLoginModuleName(String name)
Set the name to use to index into the config file of LoginModules. |
void |
setName(String name)
Set the name of the realm |
void |
setRoleClassNames(String[] classnames)
|
boolean |
validate(UserIdentity user)
Validate a user identity. |
| Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
|---|
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_ROLE_CLASS_NAME
public static String[] DEFAULT_ROLE_CLASS_NAMES
protected String[] _roleClassNames
protected String _callbackHandlerClass
protected String _realmName
protected String _loginModuleName
protected JAASUserPrincipal _defaultUser
protected IdentityService _identityService
| Constructor Detail |
|---|
public JAASLoginService()
public JAASLoginService(String name)
name - the name of the realm| Method Detail |
|---|
public String getName()
getName in interface LoginServicepublic void setName(String name)
name - a String valuepublic IdentityService getIdentityService()
getIdentityService in interface LoginServicepublic void setIdentityService(IdentityService identityService)
setIdentityService in interface LoginServiceidentityService - the identityService to setpublic void setLoginModuleName(String name)
name - a String valuepublic void setCallbackHandlerClass(String classname)
public void setRoleClassNames(String[] classnames)
public String[] getRoleClassNames()
protected void doStart()
throws Exception
doStart in class AbstractLifeCycleExceptionAbstractLifeCycle.doStart()
public UserIdentity login(String username,
Object credentials)
LoginService
login in interface LoginServiceusername - The user namecredentials - The users credentials
public boolean validate(UserIdentity user)
LoginServiceLoginService.login(String, Object) is still valid.
validate in interface LoginServiceuser - The user to validate
public void logout(UserIdentity user)
logout in interface LoginService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||