@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_AUTHENTICATED
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder,
SecurityConfiguration securityConfiguration) |
ConfigurationInterceptUrlMapRule(TokenConfiguration tokenConfiguration,
SecurityConfiguration securityConfiguration)
Deprecated.
|
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, getRoles
public static final Integer ORDER
@Deprecated public ConfigurationInterceptUrlMapRule(TokenConfiguration tokenConfiguration, SecurityConfiguration securityConfiguration)
ConfigurationInterceptUrlMapRule( RolesFinder , SecurityConfiguration)
instead.tokenConfiguration
- The Token ConfigurationsecurityConfiguration
- The Security Configuration@Inject public ConfigurationInterceptUrlMapRule(RolesFinder rolesFinder, SecurityConfiguration securityConfiguration)
rolesFinder
- Roles ParsersecurityConfiguration
- The Security Configurationprotected List<InterceptUrlMapPattern> getPatternList()
InterceptUrlMapPattern
which will be used to provide SecurityRule
.InterceptUrlMapPattern
public 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