Class InetHostMatcher

    • Constructor Detail

      • InetHostMatcher

        public InetHostMatcher()
    • Method Detail

      • tryOverrideValidation

        protected final java.util.Optional<java.lang.Boolean> tryOverrideValidation​(MatchInfo matchInfo)
                                                                             throws java.net.UnknownHostException,
                                                                                    java.net.SocketException
        Description copied from class: HostMatcher
        If the subclass has its own checks or if it has a different validation method this method can return a valid value.
        Specified by:
        tryOverrideValidation in class HostMatcher
        Parameters:
        matchInfo - the match information to validate.
        Throws:
        java.net.UnknownHostException
        java.net.SocketException
      • createAuthorizedIPs

        protected abstract java.util.List<InetHostMatcher.AddressMask> createAuthorizedIPs()
                                                                                    throws java.net.UnknownHostException,
                                                                                           java.net.SocketException
        Get the full list of authorized IP addresses and the masks.
        Throws:
        java.net.UnknownHostException
        java.net.SocketException
      • clearAuthorizedIPs

        protected final void clearAuthorizedIPs()
        Reset the authorized IPs cache.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class HostMatcher