Interface TrustedProxyCheck


public interface TrustedProxyCheck
  • Field Details

    • LOGGER

      static final org.jboss.logging.Logger LOGGER
  • 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
    • createTrustedProxyDnCheck

      static TrustedProxyCheck createTrustedProxyDnCheck(io.vertx.core.http.HttpServerRequest event, List<List<Rdn>> trustedDns)
    • matchesAnyTrustedDn

      static boolean matchesAnyTrustedDn(X500Principal peerDn, List<List<Rdn>> trustedDns)
    • createNewIpCheck

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

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