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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.security.IdentityService
getName()
org.eclipse.jetty.server.UserIdentity
void
logout
(org.eclipse.jetty.server.UserIdentity user) This gets called whenever a session is invalidated (because of user logout) or timed out.void
setIdentityService
(org.eclipse.jetty.security.IdentityService identityService) boolean
validate
(org.eclipse.jetty.server.UserIdentity user)
-
Constructor Details
-
DrillRestLoginService
-
-
Method Details
-
validate
public boolean validate(org.eclipse.jetty.server.UserIdentity user) - Specified by:
validate
in interfaceorg.eclipse.jetty.security.LoginService
-
getName
- Specified by:
getName
in interfaceorg.eclipse.jetty.security.LoginService
-
login
public org.eclipse.jetty.server.UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request) - Specified by:
login
in interfaceorg.eclipse.jetty.security.LoginService
-
getIdentityService
public org.eclipse.jetty.security.IdentityService getIdentityService()- Specified by:
getIdentityService
in interfaceorg.eclipse.jetty.security.LoginService
-
setIdentityService
public void setIdentityService(org.eclipse.jetty.security.IdentityService identityService) - Specified by:
setIdentityService
in interfaceorg.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 interfaceorg.eclipse.jetty.security.LoginService
- Parameters:
user
- - logged in UserIdentity
-