@Singleton public class SensitiveEndpointRule extends java.lang.Object implements SecurityRule
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<io.micronaut.inject.ExecutableMethod,java.lang.Boolean> |
endpointMethods
A map where the key represents the method of an endpoint
and the value represents the endpoints sensitivity.
|
static java.lang.Integer |
ORDER
The order of the rule.
|
DENY_ALL, IS_ANONYMOUS, IS_AUTHENTICATED| Modifier and Type | Method and Description |
|---|---|
SecurityRuleResult |
check(io.micronaut.http.HttpRequest<?> request,
io.micronaut.web.router.RouteMatch<?> routeMatch,
java.util.Map<java.lang.String,java.lang.Object> claims)
Returns a security result based on any conditions.
|
int |
getOrder() |
public static final java.lang.Integer ORDER
protected final java.util.Map<io.micronaut.inject.ExecutableMethod,java.lang.Boolean> endpointMethods
public SecurityRuleResult check(io.micronaut.http.HttpRequest<?> request, @Nullable io.micronaut.web.router.RouteMatch<?> routeMatch, @Nullable java.util.Map<java.lang.String,java.lang.Object> claims)
SecurityRulecheck in interface SecurityRulerequest - 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 authenticatedSecurityRuleResultpublic int getOrder()
getOrder in interface io.micronaut.core.order.Ordered