@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 |
---|---|
org.reactivestreams.Publisher<SecurityRuleResult> |
check(io.micronaut.http.HttpRequest<?> request,
io.micronaut.web.router.RouteMatch<?> routeMatch,
Authentication authentication)
Returns a publisher that is required to emit a single 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 org.reactivestreams.Publisher<SecurityRuleResult> check(io.micronaut.http.HttpRequest<?> request, @Nullable io.micronaut.web.router.RouteMatch<?> routeMatch, @Nullable Authentication authentication)
SecurityRule
request
- The current requestrouteMatch
- The matched route or empty if no route was matched. e.g. static resource.authentication
- The user authentication. Null if not authenticatedSecurityRuleResult