@Singleton public class SensitiveEndpointRule extends Object implements SecurityRule
Modifier and Type | Field and Description |
---|---|
protected Map<ExecutableMethod,Boolean> |
endpointMethods
A map where the key represents the method of an endpoint
and the value represents the endpoints sensitivity.
|
static Integer |
ORDER
The order of the rule.
|
DENY_ALL, IS_ANONYMOUS, IS_AUTHENTICATED
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
SecurityRuleResult |
check(HttpRequest request,
RouteMatch routeMatch,
Map<String,Object> claims)
Returns a security result based on any conditions.
|
int |
getOrder() |
public static final Integer ORDER
protected final Map<ExecutableMethod,Boolean> endpointMethods
public SecurityRuleResult check(HttpRequest request, @Nullable RouteMatch routeMatch, @Nullable Map<String,Object> claims)
SecurityRule
check
in interface SecurityRule
request
- The current requestrouteMatch
- The matched route or empty if no route was matched. e.g. static resource.claims
- The claims from the token. Null if not authenticatedSecurityRuleResult