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
Field Summary
Fields inherited from interface org.springframework.boot.devtools.remote.server.AccessManager
PERMIT_ALL
Constructor Summary
Constructors Constructor Description HttpHeaderAccessManager(String headerName, String expectedSecret)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed(org.springframework.http.server.ServerHttpRequest request)
Determine if the specific request is allowed to be handled by theDispatcher
.
Constructor Detail
HttpHeaderAccessManager
public HttpHeaderAccessManager(String headerName, String expectedSecret)
Method Detail
isAllowed
public boolean isAllowed(org.springframework.http.server.ServerHttpRequest request)
Description copied from interface:AccessManager
Determine if the specific request is allowed to be handled by theDispatcher
.- Specified by:
isAllowed
in interfaceAccessManager
- Parameters:
request
- the request to check- Returns:
true
if access is allowed.