Class AbstractLoginService
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.security.AbstractLoginService
- All Implemented Interfaces:
 LoginService, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Direct Known Subclasses:
 DataSourceLoginService, HashLoginService, JDBCLoginService
AbstractLoginService
Base class for LoginServices that allows subclasses to provide the user authentication and authorization information,
but provides common behaviour such as handling authentication.
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGet the IdentityService associated with this Login Service.getName()booleanprotected abstract List<RolePrincipal> loadRoleInfo(UserPrincipal user) protected abstract UserPrincipalloadUserInfo(String username) login(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) Login a user.voidlogout(UserIdentity user) voidsetFullValidate(boolean fullValidate) voidsetIdentityService(IdentityService identityService) Set the identityService.voidSet the name.toString()booleanvalidate(UserIdentity user) Validate a user identity.Methods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpableMethods inherited from interface LoginService
getUserIdentity 
- 
Field Details
- 
_identityService
 - 
_name
 - 
_fullValidate
protected boolean _fullValidate 
 - 
 - 
Constructor Details
- 
AbstractLoginService
protected AbstractLoginService() 
 - 
 - 
Method Details
- 
loadRoleInfo
 - 
loadUserInfo
 - 
getName
- Specified by:
 getNamein interfaceLoginService- Returns:
 - Get the name of the login service (aka Realm name)
 
 - 
setIdentityService
Set the identityService.- Specified by:
 setIdentityServicein interfaceLoginService- Parameters:
 identityService- the identityService to set
 - 
setName
 - 
toString
- Overrides:
 toStringin classAbstractLifeCycle
 - 
login
public UserIdentity login(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) Description copied from interface:LoginServiceLogin a user.- Specified by:
 loginin interfaceLoginService- Parameters:
 username- The username.credentials- The users credentials.request- The request or nullgetOrCreateSession- function to retrieve or create a session.- Returns:
 - A UserIdentity if the credentials matched, otherwise null
 
 - 
validate
Description copied from interface:LoginServiceValidate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, Request, Function)is still valid.- Specified by:
 validatein interfaceLoginService- Parameters:
 user- The user to validate- Returns:
 - true if authentication has not been revoked for the user.
 
 - 
getIdentityService
Description copied from interface:LoginServiceGet the IdentityService associated with this Login Service.- Specified by:
 getIdentityServicein interfaceLoginService- Returns:
 - the IdentityService associated with this Login Service.
 
 - 
logout
- Specified by:
 logoutin interfaceLoginService
 - 
isFullValidate
public boolean isFullValidate() - 
setFullValidate
public void setFullValidate(boolean fullValidate)  
 -