Package io.quarkus.vertx.http.runtime
Interface TrustedProxyCheck
public interface TrustedProxyCheck
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic TrustedProxyCheckallowAll()static BiPredicate<InetAddress, Integer> createNewIpCheck(InetAddress trustedIP, int trustedPort) static BiPredicate<InetAddress, Integer> createNewIpCheck(Collection<InetAddress> trustedIP, int trustedPort) static TrustedProxyCheckdenyAll()booleanUser can configure trusted proxies for `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers.
-
Method Details
-
allowAll
-
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
-
createNewIpCheck
static BiPredicate<InetAddress,Integer> createNewIpCheck(Collection<InetAddress> trustedIP, int trustedPort)
-