@Configuration 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
Constructor and Description |
---|
AbstractReactiveVaultConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected ClientHttpConnector |
clientHttpConnector()
|
ReactiveSessionManager |
reactiveSessionManager()
Construct a
ReactiveSessionManager using vaultTokenSupplier() . |
ReactiveVaultTemplate |
reactiveVaultTemplate()
Create a
ReactiveVaultTemplate . |
SessionManager |
sessionManager()
Construct a session manager adapter wrapping
reactiveSessionManager() and
exposing imperative SessionManager on top of a reactive API. |
protected VaultTokenSupplier |
vaultTokenSupplier()
Construct a
VaultTokenSupplier using AbstractVaultConfiguration.clientAuthentication() . |
clientAuthentication, clientHttpRequestFactoryWrapper, clientOptions, getEnvironment, restOperations, secretLeaseContainer, setApplicationContext, sslConfiguration, threadPoolTaskScheduler, vaultEndpoint, vaultEndpointProvider, vaultTemplate
@Bean public ReactiveVaultTemplate reactiveVaultTemplate()
ReactiveVaultTemplate
.ReactiveVaultTemplate
.AbstractVaultConfiguration.vaultEndpoint()
,
clientHttpConnector()
,
reactiveSessionManager()
@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 ClientHttpConnector clientHttpConnector()
ClientHttpConnector
instance.AbstractVaultConfiguration.clientOptions()
,
AbstractVaultConfiguration.sslConfiguration()
Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.