Class OutboundSecurityClientBuilder
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.securityContext(SecurityContext context) Configure the security context representing the request for which outbound security is invoked.submit()A shortcut method to build the client and invokeSecurityClient.submit()on it.Methods inherited from class SecurityRequestBuilder
buildRequest, explicitProvider, object, object, object, object, optional, tracingSpanModifier and TypeMethodDescriptionBuild the security request.explicitProvider(String providerName) Use an explicit provider.Put object to this request.Bind object to a specific name.Bind object supplier to a specific name.Put object supplier to this request.optional(boolean optional) Set that security is optional.tracingSpan(SpanContext spanContext) Tracing span to support Open tracing.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SecurityClient<OutboundSecurityResponse> get()default OutboundSecurityClientBuilderidentity()Instance of this builder as the correct type.default OutboundSecurityClientBuilderupdate(Consumer<OutboundSecurityClientBuilder> consumer) Update the builder in a fluent API way.
-
Method Details
-
build
Build an instance of a security client. The client is immutable.- Specified by:
buildin 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
-
securityContext
Configure the security context representing the request for which outbound security is invoked. The context provides the current user and service subjects to outbound security providers. Provider selection is still controlled by theSecurityinstance that created this builder.- Parameters:
context- security context of the current request- Returns:
- updated builder instance
-
buildAndGet
A shortcut method to build the client and invokeSecurityClient.get()on it.- Returns:
SecurityResponseof expected type
-
submit
A shortcut method to build the client and invokeSecurityClient.submit()on it.- Returns:
SecurityResponseof expected type
-