Module org.elasticsearch.security
Class SecurityRestFilter
java.lang.Object
org.elasticsearch.xpack.security.rest.SecurityRestFilter
- All Implemented Interfaces:
RestInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityRestFilter(boolean enabled, ThreadContext threadContext, SecondaryAuthenticator secondaryAuthenticator, AuditTrailService auditTrailService, OperatorPrivileges.OperatorPrivilegesService operatorPrivilegesService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleException(RestRequest request, Exception e, ActionListener<?> listener) voidintercept(RestRequest request, RestChannel channel, RestHandler targetHandler, ActionListener<Boolean> listener)
-
Constructor Details
-
SecurityRestFilter
public SecurityRestFilter(boolean enabled, ThreadContext threadContext, SecondaryAuthenticator secondaryAuthenticator, AuditTrailService auditTrailService, OperatorPrivileges.OperatorPrivilegesService operatorPrivilegesService)
-
-
Method Details
-
intercept
public void intercept(RestRequest request, RestChannel channel, RestHandler targetHandler, ActionListener<Boolean> listener) throws Exception - Specified by:
interceptin interfaceRestInterceptor- Throws:
Exception
-
handleException
-