@Singleton public class IpPatternsRule extends AbstractSecurityRule
SecurityConfigurationProperties.getIpPatterns()
()}.Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
ORDER
The order of the rule.
|
DENY_ALL, IS_ANONYMOUS, IS_AUTHENTICATED
Constructor and Description |
---|
IpPatternsRule(RolesFinder rolesFinder,
SecurityConfiguration securityConfiguration) |
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() |
compareRoles, getRoles
@Inject public IpPatternsRule(RolesFinder rolesFinder, SecurityConfiguration securityConfiguration)
rolesFinder
- Roles ParsersecurityConfiguration
- Security Configurationpublic int getOrder()
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)
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