Package org.bremersee.security
Class ReactiveIpAddressMatcher
- java.lang.Object
-
- org.bremersee.security.IpAddressMatcher
-
- org.bremersee.security.ReactiveIpAddressMatcher
-
- All Implemented Interfaces:
org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
public class ReactiveIpAddressMatcher extends IpAddressMatcher implements org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
The type Reactive ip address matcher.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ReactiveIpAddressMatcher(String ipAddress)
Takes a specific IP address or a range specified using the IP/Netmask (e.g. 192.168.1.0/24 or 202.24.0.0/14).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult>
matches(org.springframework.web.server.ServerWebExchange exchange)
boolean
matchesRemoteAddress(org.springframework.web.server.ServerWebExchange exchange)
Checks whether the remote address of the request matches the ip of this matcher.-
Methods inherited from class org.bremersee.security.IpAddressMatcher
matches
-
-
-
-
Constructor Detail
-
ReactiveIpAddressMatcher
public ReactiveIpAddressMatcher(String ipAddress)
Takes a specific IP address or a range specified using the IP/Netmask (e.g. 192.168.1.0/24 or 202.24.0.0/14).- Parameters:
ipAddress
- the address or range of addresses from which the request must come.
-
-
Method Detail
-
matchesRemoteAddress
public boolean matchesRemoteAddress(org.springframework.web.server.ServerWebExchange exchange)
Checks whether the remote address of the request matches the ip of this matcher.- Parameters:
exchange
- the exchange- Returns:
true
if the remote adaress matches, otherwisefalse
-
matches
public reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches(org.springframework.web.server.ServerWebExchange exchange)
- Specified by:
matches
in interfaceorg.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
-
-