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
Modifier and TypeClassDescriptionstatic class
Creates and initializes aCustomProxyOptions
in a heap environment. -
Constructor Summary
ConstructorDescriptionCustomProxyOptions
(URI uri) Create a newCustomProxyOptions
without login/password.CustomProxyOptions
(URI uri, String username, SecretReference<GenericSecret> passwordReference) Creates a newCustomProxyOptions
with login/password. -
Method Summary
Modifier and TypeMethodDescriptionConfigure proxy settings.
-
Constructor Details
-
CustomProxyOptions
Create a newCustomProxyOptions
without login/password.- Parameters:
uri
- the proxy URI
-
CustomProxyOptions
public CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference) Creates a newCustomProxyOptions
with 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:ProxyOptions
Configure proxy settings.- Specified by:
configure
in interfaceProxyOptions
- Parameters:
options
- The options to add proxy configuration into.- Returns:
- The promise that options have been set.
-