Class DrillRestLoginService

java.lang.Object
org.apache.drill.exec.server.rest.auth.DrillRestLoginService
All Implemented Interfaces:
org.eclipse.jetty.security.LoginService

public class DrillRestLoginService extends Object implements org.eclipse.jetty.security.LoginService
LoginService used when user authentication is enabled in Drillbit. It validates the user against the user authenticator set in BOOT config.
  • Constructor Details

    • DrillRestLoginService

      public DrillRestLoginService(DrillbitContext drillbitContext)
  • Method Details

    • validate

      public boolean validate(org.eclipse.jetty.server.UserIdentity user)
      Specified by:
      validate in interface org.eclipse.jetty.security.LoginService
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.jetty.security.LoginService
    • 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
    • getIdentityService

      public org.eclipse.jetty.security.IdentityService getIdentityService()
      Specified by:
      getIdentityService in interface org.eclipse.jetty.security.LoginService
    • setIdentityService

      public void setIdentityService(org.eclipse.jetty.security.IdentityService identityService)
      Specified by:
      setIdentityService in interface org.eclipse.jetty.security.LoginService
    • logout

      public void logout(org.eclipse.jetty.server.UserIdentity user)
      This gets called whenever a session is invalidated (because of user logout) or timed out.
      Specified by:
      logout in interface org.eclipse.jetty.security.LoginService
      Parameters:
      user - - logged in UserIdentity