Package org.forgerock.openig.proxy
Class CustomProxyOptions
java.lang.Object
org.forgerock.openig.proxy.CustomProxyOptions
- All Implemented Interfaces:
ProxyOptions
A
ProxyOptions representing custom proxy settings.
The password is managed as a SecretReference, ensuring its value is refreshed as necessary. This avoids
breaking the promise chain too early and may unlock further usage up to the ClientHandler (like secret rotation).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreates and initializes aCustomProxyOptionsin a heap environment. -
Constructor Summary
ConstructorsConstructorDescriptionCustomProxyOptions(URI uri) Create a newCustomProxyOptionswithout login/password.CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference) Creates a newCustomProxyOptionswith login/password. -
Method Summary
Modifier and TypeMethodDescriptionConfigure proxy settings.
-
Constructor Details
-
CustomProxyOptions
Create a newCustomProxyOptionswithout login/password.- Parameters:
uri- the proxy URI
-
CustomProxyOptions
public CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference) Creates a newCustomProxyOptionswith login/password.- Parameters:
uri- the proxy URIusername- the username to use to authenticate to the proxypasswordReference- the password to use to authenticate to the proxy
-
-
Method Details
-
configure
Description copied from interface:ProxyOptionsConfigure proxy settings.- Specified by:
configurein interfaceProxyOptions- Parameters:
options- The options to add proxy configuration into.- Returns:
- The promise that options have been set.
-