Package org.forgerock.openig.proxy
Class CustomProxyOptions
- java.lang.Object
-
- org.forgerock.openig.proxy.CustomProxyOptions
-
- All Implemented Interfaces:
ProxyOptions
public final class CustomProxyOptions extends Object implements ProxyOptions
AProxyOptions
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 Classes Modifier and Type Class Description static class
CustomProxyOptions.Heaplet
Creates and initializes aCustomProxyOptions
in a heap environment.
-
Constructor Summary
Constructors Constructor Description CustomProxyOptions(URI uri)
Create a newCustomProxyOptions
without login/password.CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference)
Creates a newCustomProxyOptions
with login/password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<Void,NeverThrowsException>
configure(Options options)
Configure proxy settings.
-
-
-
Constructor Detail
-
CustomProxyOptions
public CustomProxyOptions(URI uri)
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 Detail
-
configure
public Promise<Void,NeverThrowsException> configure(Options options)
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.
-
-