Interface TrustedProxyCheck


public interface TrustedProxyCheck
  • Method Details

    • allowAll

      static TrustedProxyCheck allowAll()
    • denyAll

      static TrustedProxyCheck denyAll()
    • isProxyAllowed

      boolean isProxyAllowed()
      User can configure trusted proxies for `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers. Headers from untrusted proxies must be ignored.
      Returns:
      true if `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers were sent by trusted SocketAddress
    • createNewIpCheck

      static BiPredicate<InetAddress,Integer> createNewIpCheck(InetAddress trustedIP, int trustedPort)