@Configuration(proxyBeanMethods=false) public abstract class AbstractReactiveVaultConfiguration extends AbstractVaultConfiguration
Reactive Vault support creates a ReactiveSessionManager
(for the session token)
from the configured AbstractVaultConfiguration.clientAuthentication()
via vaultTokenSupplier()
.
The authentication object must implement AuthenticationStepsFactory
exposing
AuthenticationSteps
to obtain
authentication using reactive infrastructure.
This configuration class provides configuration for imperative and reactive usage.
Using this configuration creates an imperative SessionManager
adapter by
wrapping reactiveSessionManager()
.
Subclasses may override methods to customize configuration.
AbstractVaultConfiguration.ClientFactoryWrapper, AbstractVaultConfiguration.TaskSchedulerWrapper
Constructor and Description |
---|
AbstractReactiveVaultConfiguration() |
clientAuthentication, clientHttpRequestFactoryWrapper, clientOptions, getBeanFactory, getEnvironment, getRestTemplateFactory, getVaultThreadPoolTaskScheduler, restOperations, restTemplateBuilder, restTemplateFactory, secretLeaseContainer, setApplicationContext, sslConfiguration, threadPoolTaskScheduler, vaultEndpoint, vaultEndpointProvider, vaultTemplate
public ReactiveVaultEndpointProvider reactiveVaultEndpointProvider()
ReactiveVaultEndpointProvider
returning the value of
AbstractVaultConfiguration.vaultEndpointProvider()
.AbstractVaultConfiguration.vaultEndpoint()
,
AbstractVaultConfiguration.vaultEndpointProvider()
protected WebClientBuilder webClientBuilder(VaultEndpointProvider endpointProvider, org.springframework.http.client.reactive.ClientHttpConnector httpConnector)
WebClientBuilder
initialized with VaultEndpointProvider
and ClientHttpConnector
. May be overridden by subclasses.WebClientBuilder
.reactiveVaultEndpointProvider()
,
clientHttpConnector()
protected WebClientBuilder webClientBuilder(ReactiveVaultEndpointProvider endpointProvider, org.springframework.http.client.reactive.ClientHttpConnector httpConnector)
WebClientBuilder
initialized with VaultEndpointProvider
and ClientHttpConnector
. May be overridden by subclasses.WebClientBuilder
.reactiveVaultEndpointProvider()
,
clientHttpConnector()
@Bean public WebClientFactory webClientFactory()
WebClientFactory
bean that is used to produce a WebClient
.WebClientFactory
.clientHttpConnector()
@Bean public ReactiveVaultTemplate reactiveVaultTemplate()
ReactiveVaultTemplate
.@Bean public SessionManager sessionManager()
reactiveSessionManager()
and
exposing imperative SessionManager
on top of a reactive API.sessionManager
in class AbstractVaultConfiguration
SessionManager
adapter.SessionManager
,
LifecycleAwareSessionManager
,
AbstractVaultConfiguration.restOperations()
,
AbstractVaultConfiguration.clientAuthentication()
,
()
@Bean public ReactiveSessionManager reactiveSessionManager()
ReactiveSessionManager
using vaultTokenSupplier()
.
This ReactiveSessionManager
uses
AbstractVaultConfiguration.threadPoolTaskScheduler()
.VaultTokenSupplier
for Vault session token management.VaultTokenSupplier
,
AbstractVaultConfiguration.clientAuthentication()
protected VaultTokenSupplier vaultTokenSupplier()
VaultTokenSupplier
using AbstractVaultConfiguration.clientAuthentication()
.VaultTokenSupplier
for Vault session token management.VaultTokenSupplier
,
AbstractVaultConfiguration.clientAuthentication()
protected org.springframework.http.client.reactive.ClientHttpConnector clientHttpConnector()
ClientHttpConnector
instance.AbstractVaultConfiguration.clientOptions()
,
AbstractVaultConfiguration.sslConfiguration()
protected WebClientFactory getWebClientFactory()
WebClientFactory
.WebClientFactory
bean.Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.