Skip to content

Commit

Permalink
Update PIConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatusiewicz committed Nov 20, 2024
1 parent a86029a commit c35cff7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/org/privacyidea/PIConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -128,4 +136,14 @@ public int getHttpTimeoutMs()
{
return httpTimeoutMs;
}

public String getProxyHost()
{
return proxyHost;
}

public int getProxyPort()
{
return proxyPort;
}
}

0 comments on commit c35cff7

Please sign in to comment.