Class HttpHeaderAccessManager

java.lang.Object
org.springframework.boot.devtools.remote.server.HttpHeaderAccessManager
All Implemented Interfaces:
AccessManager

public class HttpHeaderAccessManager extends Object implements AccessManager
AccessManager that checks for the presence of an HTTP header secret.
Since:
1.3.0
Author:
Rob Winch, Phillip Webb
  • Constructor Details

    • HttpHeaderAccessManager

      public HttpHeaderAccessManager(String headerName, String expectedSecret)
  • Method Details

    • isAllowed

      public boolean isAllowed(ServerHttpRequest request)
      Description copied from interface: AccessManager
      Determine if the specific request is allowed to be handled by the Dispatcher.
      Specified by:
      isAllowed in interface AccessManager
      Parameters:
      request - the request to check
      Returns:
      true if access is allowed.