- java.lang.Object
-
- io.helidon.security.SecurityRequestBuilder<OutboundSecurityClientBuilder>
-
- io.helidon.security.OutboundSecurityClientBuilder
-
- All Implemented Interfaces:
Builder<SecurityClient<OutboundSecurityResponse>>
,Supplier<SecurityClient<OutboundSecurityResponse>>
public class OutboundSecurityClientBuilder extends SecurityRequestBuilder<OutboundSecurityClientBuilder> implements Builder<SecurityClient<OutboundSecurityResponse>>
Builder constructing a security client - extends theSecurityRequestBuilder
for convenience.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityClient<OutboundSecurityResponse>
build()
Build an instance of a security client.OutboundSecurityResponse
buildAndGet()
A shortcut method to build the client and invokeSecurityClient.get()
on it.OutboundSecurityClientBuilder
outboundEndpointConfig(EndpointConfig outboundEndpointConfig)
Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.OutboundSecurityClientBuilder
outboundEndpointConfig(Supplier<EndpointConfig> outboundEndpointConfig)
Configure outbound endpoint config (annotations, config, attributes etc.) for this outbound call.OutboundSecurityClientBuilder
outboundEnvironment(SecurityEnvironment outboundEnvironment)
Configure outbound environment (path, headers, URI etc.) for this outbound call.OutboundSecurityClientBuilder
outboundEnvironment(Supplier<SecurityEnvironment> outboundEnvironment)
Configure outbound environment (path, headers, URI etc.) for this outbound call.CompletionStage<OutboundSecurityResponse>
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 Detail
-
build
public SecurityClient<OutboundSecurityResponse> build()
Build an instance of a security client. The client is immutable.- Specified by:
build
in interfaceBuilder<SecurityClient<OutboundSecurityResponse>>
- Returns:
- client instance
-
outboundEnvironment
public OutboundSecurityClientBuilder outboundEnvironment(SecurityEnvironment 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
public OutboundSecurityClientBuilder outboundEndpointConfig(EndpointConfig 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
public OutboundSecurityResponse buildAndGet()
A shortcut method to build the client and invokeSecurityClient.get()
on it.- Returns:
SecurityResponse
of expected type
-
submit
public CompletionStage<OutboundSecurityResponse> submit()
A shortcut method to build the client and invokeSecurityClient.submit()
on it.- Returns:
CompletionStage
withSecurityResponse
of expected type
-
-