java.lang.Object
io.helidon.security.SecurityRequestBuilder<OutboundSecurityClientBuilder>
io.helidon.security.OutboundSecurityClientBuilder
- All Implemented Interfaces:
Builder<OutboundSecurityClientBuilder,
,SecurityClient<OutboundSecurityResponse>> Supplier<SecurityClient<OutboundSecurityResponse>>
public class OutboundSecurityClientBuilder
extends SecurityRequestBuilder<OutboundSecurityClientBuilder>
implements Builder<OutboundSecurityClientBuilder,SecurityClient<OutboundSecurityResponse>>
Builder constructing a security client - extends the
SecurityRequestBuilder
for convenience.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance of a security client.A shortcut method to build the client and invokeSecurityClient.get()
on it.outboundEndpointConfig
(EndpointConfig outboundEndpointConfig) Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.outboundEndpointConfig
(Supplier<EndpointConfig> outboundEndpointConfig) Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.outboundEnvironment
(SecurityEnvironment outboundEnvironment) Configure outbound environment (path, headers, URI etc.) for this outbound call.outboundEnvironment
(Supplier<SecurityEnvironment> outboundEnvironment) Configure outbound environment (path, headers, URI etc.) for this outbound call.submit()
A shortcut method to build the client and invokeSecurityClient.submit()
on it.Methods inherited from class io.helidon.security.SecurityRequestBuilder
buildRequest, explicitProvider, object, object, object, object, optional, tracingSpan
-
Method Details
-
build
Build an instance of a security client. The client is immutable.- Specified by:
build
in interfaceBuilder<OutboundSecurityClientBuilder,
SecurityClient<OutboundSecurityResponse>> - Returns:
- client instance
-
outboundEnvironment
Configure outbound environment (path, headers, URI etc.) for this outbound call.- Parameters:
outboundEnvironment
- environment to use for outbound call- Returns:
- updated builder instance
-
outboundEnvironment
public OutboundSecurityClientBuilder outboundEnvironment(Supplier<SecurityEnvironment> outboundEnvironment) Configure outbound environment (path, headers, URI etc.) for this outbound call.- Parameters:
outboundEnvironment
- environment builder to use for outbound call- Returns:
- updated builder instance
-
outboundEndpointConfig
Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.- Parameters:
outboundEndpointConfig
- endpoint config to use for outbound call- Returns:
- updated builder instance
-
outboundEndpointConfig
public OutboundSecurityClientBuilder outboundEndpointConfig(Supplier<EndpointConfig> outboundEndpointConfig) Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.- Parameters:
outboundEndpointConfig
- endpoint config builder to use for outbound call- Returns:
- updated builder instance
-
buildAndGet
A shortcut method to build the client and invokeSecurityClient.get()
on it.- Returns:
SecurityResponse
of expected type
-
submit
A shortcut method to build the client and invokeSecurityClient.submit()
on it.- Returns:
CompletionStage
withSecurityResponse
of expected type
-