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)
CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference)
-
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)
-
CustomProxyOptions
public CustomProxyOptions(URI uri, String username, SecretReference<GenericSecret> passwordReference)
-
-
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.
-
-