Interface TrustedProxyCheck


public interface TrustedProxyCheck
  • Field Details

  • Method Details

    • createTruststoreCheck

      static TrustedProxyCheck createTruststoreCheck(io.vertx.core.http.HttpServerRequest event, X509TrustManager trustManager, String alias)
    • 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)