@Singleton public class IpPatternsRule extends AbstractSecurityRule
SecurityConfigurationProperties.getIpPatterns()
()}.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 |
---|
IpPatternsRule(RolesFinder rolesFinder,
SecurityConfiguration securityConfiguration) |
IpPatternsRule(TokenConfiguration tokenConfiguration,
SecurityConfiguration securityConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SecurityRuleResult |
check(HttpRequest request,
RouteMatch routeMatch,
Map<String,Object> claims)
Returns a security result based on any conditions.
|
int |
getOrder() |
compareRoles, getRoles
public static final Integer ORDER
@Deprecated public IpPatternsRule(TokenConfiguration tokenConfiguration, SecurityConfiguration securityConfiguration)
IpPatternsRule( RolesFinder , SecurityConfiguration )
instead.tokenConfiguration
- Token ConfigurationsecurityConfiguration
- Security Configuration@Inject public IpPatternsRule(RolesFinder rolesFinder, SecurityConfiguration securityConfiguration)
rolesFinder
- Roles ParsersecurityConfiguration
- Security Configurationpublic int getOrder()
public SecurityRuleResult check(HttpRequest request, @Nullable RouteMatch routeMatch, @Nullable Map<String,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