Class DrillUserPrincipal
java.lang.Object
org.apache.drill.exec.server.rest.auth.DrillUserPrincipal
- All Implemented Interfaces:
Principal
- Direct Known Subclasses:
DrillUserPrincipal.AnonDrillUserPrincipal
Captures Drill user credentials and privilege's of the session user.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DrillUserPrincipal
for anonymous (auth disabled) mode. -
Field Summary
Modifier and TypeFieldDescriptionstatic final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal>
static final String
static final String[]
static final String
static final String
static final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal>
static final String[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canManageProfileOf
(String profileOwner) Is the user identified by this user principal can manage (read) the profile owned by the given user?boolean
canManageQueryOf
(String queryUser) Is the user identified by this user principal can manage (cancel) the query issued by the given user?getName()
boolean
-
Field Details
-
ANONYMOUS_USER
- See Also:
-
AUTHENTICATED_ROLE
- See Also:
-
ADMIN_ROLE
- See Also:
-
ADMIN_USER_ROLES
-
NON_ADMIN_USER_ROLES
-
ADMIN_PRINCIPALS
public static final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> ADMIN_PRINCIPALS -
NON_ADMIN_PRINCIPALS
public static final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> NON_ADMIN_PRINCIPALS
-
-
Constructor Details
-
DrillUserPrincipal
-
-
Method Details
-
isAdminUser
public boolean isAdminUser() -
getName
-
canManageProfileOf
Is the user identified by this user principal can manage (read) the profile owned by the given user?- Parameters:
profileOwner
- Owner of the profile.- Returns:
- true/false
-
canManageQueryOf
Is the user identified by this user principal can manage (cancel) the query issued by the given user?- Parameters:
queryUser
- User who launched the query.- Returns:
- true/false
-