Class AbstractLoginService

  • All Implemented Interfaces:
    LoginService, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle
    Direct Known Subclasses:
    HashLoginService, JDBCLoginService

    public abstract class AbstractLoginService
    extends org.eclipse.jetty.util.component.ContainerLifeCycle
    implements LoginService
    AbstractLoginService
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AbstractLoginService.RolePrincipal
      RolePrincipal
      static class  AbstractLoginService.UserPrincipal
      UserPrincipal
      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

        org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean _fullValidate  
      protected IdentityService _identityService  
      protected java.lang.String _name  
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractLoginService()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      IdentityService getIdentityService()
      Get the IdentityService associated with this Login Service.
      java.lang.String getName()  
      boolean isFullValidate()  
      protected abstract java.lang.String[] loadRoleInfo​(AbstractLoginService.UserPrincipal user)  
      protected abstract AbstractLoginService.UserPrincipal loadUserInfo​(java.lang.String username)  
      UserIdentity login​(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)
      Login a user.
      void logout​(UserIdentity user)  
      void setFullValidate​(boolean fullValidate)  
      void setIdentityService​(IdentityService identityService)
      Set the identityService.
      void setName​(java.lang.String name)
      Set the name.
      java.lang.String toString()  
      boolean validate​(UserIdentity user)
      Validate a user identity.
      • Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

        addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf