Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher

        org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult
    • 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).
    • 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, otherwise false
      • 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 interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher