@Singleton public class ConfigurationInterceptUrlMapRule extends AbstractSecurityRule
SecurityConfiguration.getInterceptUrlMap().| Modifier and Type | Field and Description |
|---|---|
static Integer |
ORDER
The order of the rule.
|
DENY_ALL, IS_ANONYMOUS, IS_AUTHENTICATEDHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ConfigurationInterceptUrlMapRule(TokenConfiguration tokenConfiguration,
SecurityConfiguration securityConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
SecurityRuleResult |
check(HttpRequest request,
RouteMatch routeMatch,
Map<String,Object> claims)
If no configured pattern matches the request, return
SecurityRuleResult.UNKNOWN. |
int |
getOrder() |
protected List<InterceptUrlMapPattern> |
getPatternList()
Provides a list of
InterceptUrlMapPattern which will be used to provide SecurityRule. |
compareRoles, getRolespublic static final Integer ORDER
public ConfigurationInterceptUrlMapRule(TokenConfiguration tokenConfiguration, SecurityConfiguration securityConfiguration)
tokenConfiguration - The Token ConfigurationsecurityConfiguration - The Security Configurationprotected List<InterceptUrlMapPattern> getPatternList()
InterceptUrlMapPattern which will be used to provide SecurityRule.InterceptUrlMapPatternpublic int getOrder()
public SecurityRuleResult check(HttpRequest request, @Nullable RouteMatch routeMatch, @Nullable Map<String,Object> claims)
SecurityRuleResult.UNKNOWN.
Reads the rules in order. The first matched rule will be used for determining authorization.request - The current requestrouteMatch - The matched routeclaims - The claims from the token. Null if not authenticatedSecurityRuleResult