|
||||||||||
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 java.lang.String |
_callbackHandlerClass
|
protected JAASUserPrincipal |
_defaultUser
|
protected IdentityService |
_identityService
|
protected java.lang.String |
_loginModuleName
|
protected java.lang.String |
_realmName
|
protected java.lang.String[] |
_roleClassNames
|
static java.lang.String |
DEFAULT_ROLE_CLASS_NAME
|
static java.lang.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(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
protected void |
doStart()
|
IdentityService |
getIdentityService()
Get the identityService. |
java.lang.String |
getName()
Get the name of the realm. |
java.lang.String[] |
getRoleClassNames()
|
UserIdentity |
login(java.lang.String username,
java.lang.Object credentials)
Login a user. |
void |
logout(UserIdentity user)
|
void |
setCallbackHandlerClass(java.lang.String classname)
|
void |
setIdentityService(IdentityService identityService)
Set the identityService. |
void |
setLoginModuleName(java.lang.String name)
Set the name to use to index into the config file of LoginModules. |
void |
setName(java.lang.String name)
Set the name of the realm |
void |
setRoleClassNames(java.lang.String[] classnames)
|
boolean |
validate(UserIdentity user)
Validate a user identity. |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
addLifeCycleListener, doStop, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String DEFAULT_ROLE_CLASS_NAME
public static java.lang.String[] DEFAULT_ROLE_CLASS_NAMES
protected java.lang.String[] _roleClassNames
protected java.lang.String _callbackHandlerClass
protected java.lang.String _realmName
protected java.lang.String _loginModuleName
protected JAASUserPrincipal _defaultUser
protected IdentityService _identityService
Constructor Detail |
---|
public JAASLoginService()
public JAASLoginService(java.lang.String name)
name
- the name of the realmMethod Detail |
---|
public java.lang.String getName()
getName
in interface LoginService
public void setName(java.lang.String name)
name
- a String
valuepublic IdentityService getIdentityService()
getIdentityService
in interface LoginService
public void setIdentityService(IdentityService identityService)
setIdentityService
in interface LoginService
identityService
- the identityService to setpublic void setLoginModuleName(java.lang.String name)
name
- a String
valuepublic void setCallbackHandlerClass(java.lang.String classname)
public void setRoleClassNames(java.lang.String[] classnames)
public java.lang.String[] getRoleClassNames()
protected void doStart() throws java.lang.Exception
doStart
in class AbstractLifeCycle
java.lang.Exception
AbstractLifeCycle.doStart()
public UserIdentity login(java.lang.String username, java.lang.Object credentials)
LoginService
login
in interface LoginService
username
- The user namecredentials
- The users credentials
public boolean validate(UserIdentity user)
LoginService
LoginService.login(String, Object)
is still valid.
validate
in interface LoginService
user
- The user to validate
public void logout(UserIdentity user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |