Package io.quarkus.vertx.http.runtime
Interface TrustedProxyCheck
-
public interface TrustedProxyCheck
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TrustedProxyCheck.TrustedProxyCheckBuilder
static class
TrustedProxyCheck.TrustedProxyCheckPart
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TrustedProxyCheck
allowAll()
static BiPredicate<InetAddress,Integer>
createNewIpCheck(InetAddress trustedIP, int trustedPort)
static TrustedProxyCheck
denyAll()
boolean
isProxyAllowed()
User can configure trusted proxies for `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers.
-
-
-
Method Detail
-
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)
-
-