From c35cff75c7dfb269db3e2878abf3da38fdf2cd12 Mon Sep 17 00:00:00 2001 From: lukasmatusiewicz Date: Wed, 20 Nov 2024 10:16:26 +0100 Subject: [PATCH] Update PIConfig.java --- src/main/java/org/privacyidea/PIConfig.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/org/privacyidea/PIConfig.java b/src/main/java/org/privacyidea/PIConfig.java index 6bbad7a..179c0a9 100644 --- a/src/main/java/org/privacyidea/PIConfig.java +++ b/src/main/java/org/privacyidea/PIConfig.java @@ -28,6 +28,8 @@ class PIConfig private boolean disableLog = false; private String forwardClientIP = ""; private int httpTimeoutMs = 30000; + private String proxyHost = ""; + private int proxyPort = 0; public PIConfig(String serverURL, String userAgent) { @@ -77,6 +79,12 @@ public void setHttpTimeoutMs(int httpTimeoutMs) this.httpTimeoutMs = httpTimeoutMs; } + public void setProxy(String proxyHost, int proxyPort) + { + this.proxyHost = proxyHost; + this.proxyPort = proxyPort; + } + // GETTERS public String getServerURL() @@ -128,4 +136,14 @@ public int getHttpTimeoutMs() { return httpTimeoutMs; } + + public String getProxyHost() + { + return proxyHost; + } + + public int getProxyPort() + { + return proxyPort; + } } \ No newline at end of file