Class HttpBasicOutboundConfig.Builder
- java.lang.Object
-
- io.helidon.security.providers.httpauth.HttpBasicOutboundConfig.Builder
-
- All Implemented Interfaces:
Builder<HttpBasicOutboundConfig>
,Supplier<HttpBasicOutboundConfig>
- Enclosing class:
- HttpBasicOutboundConfig
public static class HttpBasicOutboundConfig.Builder extends Object implements Builder<HttpBasicOutboundConfig>
Fluent API builder forHttpBasicOutboundConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpBasicOutboundConfig
build()
Build the instance from this builder.HttpBasicOutboundConfig.Builder
config(Config config)
Updated this configuration from the config instance.HttpBasicOutboundConfig.Builder
explicitPassword(String explicitPassword)
Configure explicit password to use for this outbound target.HttpBasicOutboundConfig.Builder
explicitUser(String explicitUser)
Configure explicit user to use for this outbound target.HttpBasicOutboundConfig.Builder
tokenHandler(TokenHandler tokenHandler)
Token handler to add the outbound basic authentication to headers.
-
-
-
Method Detail
-
build
public HttpBasicOutboundConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<HttpBasicOutboundConfig>
- Returns:
- instance of the built type
-
config
public HttpBasicOutboundConfig.Builder config(Config config)
Updated this configuration from the config instance.- Parameters:
config
- configuration- Returns:
- updated builder instance
-
tokenHandler
public HttpBasicOutboundConfig.Builder tokenHandler(TokenHandler tokenHandler)
Token handler to add the outbound basic authentication to headers.- Parameters:
tokenHandler
- handler for outbound headers- Returns:
- updated builder instance
-
explicitUser
public HttpBasicOutboundConfig.Builder explicitUser(String explicitUser)
Configure explicit user to use for this outbound target.- Parameters:
explicitUser
- username to use- Returns:
- updated builder instance
-
explicitPassword
public HttpBasicOutboundConfig.Builder explicitPassword(String explicitPassword)
Configure explicit password to use for this outbound target.- Parameters:
explicitPassword
- password to use- Returns:
- updated builder instance
-
-