Module io.helidon.security
Package io.helidon.security
Class SecurityClientBuilder<T extends SecurityResponse>
- java.lang.Object
-
- io.helidon.security.SecurityRequestBuilder<SecurityClientBuilder<T>>
-
- io.helidon.security.SecurityClientBuilder<T>
-
- Type Parameters:
T
- Type of response the built client returns
- All Implemented Interfaces:
Builder<SecurityClient<T>>
,Supplier<SecurityClient<T>>
public class SecurityClientBuilder<T extends SecurityResponse> extends SecurityRequestBuilder<SecurityClientBuilder<T>> implements Builder<SecurityClient<T>>
Builder constructing a security client - extends theSecurityRequestBuilder
for convenience.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityClient<T>
build()
Build an instance of a security client.T
buildAndGet()
A shortcut method to build the client and invokeSecurityClient.get()
on it.CompletionStage<T>
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<T> build()
Build an instance of a security client. The client is immutable.- Specified by:
build
in interfaceBuilder<T extends SecurityResponse>
- Returns:
- client instance
-
buildAndGet
public T buildAndGet()
A shortcut method to build the client and invokeSecurityClient.get()
on it.- Returns:
SecurityResponse
of expected type
-
submit
public CompletionStage<T> submit()
A shortcut method to build the client and invokeSecurityClient.submit()
on it.- Returns:
CompletionStage
withSecurityResponse
of expected type
-
-