public class HttpHeaderAccessManager extends Object implements AccessManager
AccessManager
that checks for the presence of a HTTP header secret.PERMIT_ALL
Constructor and Description |
---|
HttpHeaderAccessManager(String headerName,
String expectedSecret) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowed(ServerHttpRequest request)
Determine if the specific request is allowed to be handled by the
Dispatcher . |
public boolean isAllowed(ServerHttpRequest request)
AccessManager
Dispatcher
.isAllowed
in interface AccessManager
request
- the request to checktrue
if access is allowed.