Class SecurityRestFilter

java.lang.Object
org.elasticsearch.xpack.security.rest.SecurityRestFilter
All Implemented Interfaces:
org.elasticsearch.rest.RestHandler

public class SecurityRestFilter extends Object implements org.elasticsearch.rest.RestHandler
  • Constructor Details

    • SecurityRestFilter

      public SecurityRestFilter(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.util.concurrent.ThreadContext threadContext, AuthenticationService authenticationService, SecondaryAuthenticator secondaryAuthenticator, org.elasticsearch.rest.RestHandler restHandler, boolean extractClientCertificate)
  • Method Details

    • allowSystemIndexAccessByDefault

      public boolean allowSystemIndexAccessByDefault()
      Specified by:
      allowSystemIndexAccessByDefault in interface org.elasticsearch.rest.RestHandler
    • handleRequest

      public void handleRequest(org.elasticsearch.rest.RestRequest request, org.elasticsearch.rest.RestChannel channel, org.elasticsearch.client.internal.node.NodeClient client) throws Exception
      Specified by:
      handleRequest in interface org.elasticsearch.rest.RestHandler
      Throws:
      Exception
    • handleException

      protected void handleException(SecurityRestFilter.ActionType actionType, org.elasticsearch.rest.RestRequest request, org.elasticsearch.rest.RestChannel channel, Exception e)
    • canTripCircuitBreaker

      public boolean canTripCircuitBreaker()
      Specified by:
      canTripCircuitBreaker in interface org.elasticsearch.rest.RestHandler
    • supportsContentStream

      public boolean supportsContentStream()
      Specified by:
      supportsContentStream in interface org.elasticsearch.rest.RestHandler
    • allowsUnsafeBuffers

      public boolean allowsUnsafeBuffers()
      Specified by:
      allowsUnsafeBuffers in interface org.elasticsearch.rest.RestHandler
    • routes

      public List<org.elasticsearch.rest.RestHandler.Route> routes()
      Specified by:
      routes in interface org.elasticsearch.rest.RestHandler
    • mediaTypesValid

      public boolean mediaTypesValid(org.elasticsearch.rest.RestRequest request)
      Specified by:
      mediaTypesValid in interface org.elasticsearch.rest.RestHandler