Class DrillSpnegoLoginService

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.SpnegoLoginService
org.apache.drill.exec.server.rest.auth.DrillSpnegoLoginService
All Implemented Interfaces:
org.eclipse.jetty.security.LoginService, org.eclipse.jetty.util.component.LifeCycle

public class DrillSpnegoLoginService extends org.eclipse.jetty.security.SpnegoLoginService
Custom implementation of DrillSpnegoLoginService to avoid the need of passing targetName in a config file, to include the SPNEGO OID and the way UserIdentity is created.
  • Nested Class Summary

    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 inherited from class org.eclipse.jetty.security.SpnegoLoginService

    _identityService, _name

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    org.eclipse.jetty.server.UserIdentity
    login(String username, Object credentials, javax.servlet.ServletRequest request)
     

    Methods inherited from class org.eclipse.jetty.security.SpnegoLoginService

    getConfig, getIdentityService, getName, logout, setConfig, setIdentityService, setName, validate

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.security.SpnegoLoginService
      Throws:
      Exception
    • login

      public org.eclipse.jetty.server.UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request)
      Specified by:
      login in interface org.eclipse.jetty.security.LoginService
      Overrides:
      login in class org.eclipse.jetty.security.SpnegoLoginService