@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_AUTHENTICATEDHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
IpPatternsRule(TokenConfiguration tokenConfiguration,
SecurityConfiguration securityConfiguration) |
| 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, getRolespublic static final Integer ORDER
public IpPatternsRule(TokenConfiguration tokenConfiguration, SecurityConfiguration securityConfiguration)
tokenConfiguration - Token ConfigurationsecurityConfiguration - Security Configurationpublic int getOrder()
public SecurityRuleResult check(HttpRequest request, @Nullable RouteMatch routeMatch, @Nullable Map<String,Object> claims)
SecurityRulerequest - 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