Class AbstractLoginService

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

    public abstract class AbstractLoginService
    extends org.eclipse.jetty.util.component.AbstractLifeCycle
    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.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
    • 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)  
      org.eclipse.jetty.server.UserIdentity login​(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)
      Login a user.
      void logout​(org.eclipse.jetty.server.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​(org.eclipse.jetty.server.UserIdentity user)
      Validate a user identity.
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait