org.springframework.boot.devtools.remote.server

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 a HTTP header secret.
    Since:
    1.3.0
    Author:
    Rob Winch, Phillip Webb
    • Constructor Detail

      • HttpHeaderAccessManager

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

      • 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.