-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EWT-191] Add support for custom proxy configurations with authentica…
…tion (#202)
- Loading branch information
Showing
7 changed files
with
169 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.truelayer.java; | ||
|
||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* Class that represent a custom proxy configuration | ||
*/ | ||
@Builder | ||
@Getter | ||
@EqualsAndHashCode | ||
@ToString | ||
@Accessors(fluent = true) | ||
public class ProxyConfiguration { | ||
|
||
/** | ||
* Hostname of the proxy | ||
*/ | ||
String hostname; | ||
|
||
/** | ||
* Port of the proxy | ||
*/ | ||
int port; | ||
|
||
/** | ||
* Optional credentials for authenticating proxy requests | ||
*/ | ||
Credentials credentials; | ||
|
||
@Builder | ||
@Getter | ||
@EqualsAndHashCode | ||
@ToString | ||
@Accessors(fluent = true) | ||
public static class Credentials { | ||
String username; | ||
|
||
String password; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/test/java/com/truelayer/java/TrueLayerClientBuilderTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters