@Singleton public class ConfigurationInterceptUrlMapRule extends AbstractSecurityRule
SecurityConfiguration.getInterceptUrlMap()
.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 |
---|
ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder,
SecurityConfiguration securityConfiguration)
Deprecated.
|
ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder,
SecurityConfiguration securityConfiguration,
InterceptUrlPatternModifier interceptUrlPatternModifier) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<SecurityRuleResult> |
check(io.micronaut.http.HttpRequest<?> request,
io.micronaut.web.router.RouteMatch<?> routeMatch,
Authentication authentication)
If no configured pattern matches the request, return
SecurityRuleResult.UNKNOWN . |
int |
getOrder() |
protected java.util.List<InterceptUrlMapPattern> |
getPatternList()
Provides a list of
InterceptUrlMapPattern which will be used to provide SecurityRule . |
compareRoles, getRoles
@Inject public ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder, SecurityConfiguration securityConfiguration, InterceptUrlPatternModifier interceptUrlPatternModifier)
rolesFinder
- Roles ParsersecurityConfiguration
- The Security ConfigurationinterceptUrlPatternModifier
- InterceptURLMap modifier@Deprecated public ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder, SecurityConfiguration securityConfiguration)
ConfigurationInterceptUrlMapRule(RolesFinder,SecurityConfiguration,InterceptUrlPatternModifier)
instead.rolesFinder
- Roles ParsersecurityConfiguration
- The Security Configurationprotected java.util.List<InterceptUrlMapPattern> getPatternList()
InterceptUrlMapPattern
which will be used to provide SecurityRule
.InterceptUrlMapPattern
public int getOrder()
public org.reactivestreams.Publisher<SecurityRuleResult> check(io.micronaut.http.HttpRequest<?> request, @Nullable io.micronaut.web.router.RouteMatch<?> routeMatch, @Nullable Authentication authentication)
SecurityRuleResult.UNKNOWN
.
Reads the rules in order. The first matched rule will be used for determining authorization.request
- The current requestrouteMatch
- The matched routeauthentication
- The user authentication. Null if not authenticatedSecurityRuleResult