| Package | Description |
|---|---|
| org.springframework.vault.authentication |
Support for authentication and session management.
|
| org.springframework.vault.client |
Spring Vault Client abstraction.
|
| org.springframework.vault.core |
Vault core support.
|
| org.springframework.vault.support |
Classes supporting the Vault packages, such as value objects.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LoginToken
Value object for a Vault token obtained by a login method.
|
| Modifier and Type | Method and Description |
|---|---|
VaultToken |
CubbyholeAuthenticationOptions.getInitialToken() |
VaultToken |
AppRoleAuthenticationOptions.getInitialToken()
Deprecated.
since 2.0, use
AppRoleAuthenticationOptions.getRoleId()/AppRoleAuthenticationOptions.getSecretId() to obtain
configuration modes (pull/wrapped) for an AppRole token. |
VaultToken |
SimpleSessionManager.getSessionToken() |
VaultToken |
SessionManager.getSessionToken()
Obtain a session token.
|
VaultToken |
LifecycleAwareSessionManager.getSessionToken() |
VaultToken |
TokenAuthentication.login() |
protected VaultToken |
LifecycleAwareSessionManager.login() |
VaultToken |
KubernetesAuthentication.login() |
VaultToken |
CubbyholeAuthentication.login() |
VaultToken |
ClientCertificateAuthentication.login() |
VaultToken |
ClientAuthentication.login()
Return a
VaultToken. |
VaultToken |
AwsIamAuthentication.login() |
VaultToken |
AwsEc2Authentication.login() |
VaultToken |
AuthenticationStepsExecutor.login() |
VaultToken |
AppRoleAuthentication.login() |
VaultToken |
AppIdAuthentication.login() |
| Modifier and Type | Method and Description |
|---|---|
default reactor.core.publisher.Mono<VaultToken> |
ReactiveSessionManager.getSessionToken()
Obtain a session token.
|
reactor.core.publisher.Mono<VaultToken> |
VaultTokenSupplier.getVaultToken()
Return a
VaultToken. |
reactor.core.publisher.Mono<VaultToken> |
ReactiveLifecycleAwareSessionManager.getVaultToken() |
reactor.core.publisher.Mono<VaultToken> |
CachingVaultTokenSupplier.getVaultToken() |
reactor.core.publisher.Mono<VaultToken> |
AuthenticationStepsOperator.getVaultToken() |
protected reactor.core.publisher.Mono<VaultToken> |
ReactiveLifecycleAwareSessionManager.renewToken()
Performs a token refresh.
|
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationSteps |
TokenAuthentication.createAuthenticationSteps(VaultToken token,
boolean selfLookup)
Creates a
AuthenticationSteps for token authentication given
VaultToken. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder.initialToken(VaultToken initialToken)
Configure the initial
VaultToken to access Cubbyhole. |
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder |
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder.initialToken(VaultToken initialToken)
Deprecated.
since 2.0, use
#roleId(RoleId)/#secretId(SecretId)
to configure pull mode. |
static AuthenticationSteps |
AuthenticationSteps.just(VaultToken token)
Create a flow definition using a provided
VaultToken. |
static AppRoleAuthenticationOptions.RoleId |
AppRoleAuthenticationOptions.RoleId.pull(VaultToken initialToken)
Create a
AppRoleAuthenticationOptions.RoleId that obtains its value using pull-mode, specifying a
initial token. |
static AppRoleAuthenticationOptions.SecretId |
AppRoleAuthenticationOptions.SecretId.pull(VaultToken initialToken)
Create a
AppRoleAuthenticationOptions.SecretId that obtains its value using pull-mode, specifying a
initial token. |
static LoginToken |
LoginToken.renewable(VaultToken token,
Duration leaseDuration)
Create a new renewable
LoginToken with a leaseDurationSeconds. |
protected reactor.core.publisher.Mono<Void> |
ReactiveLifecycleAwareSessionManager.revoke(VaultToken token)
Revoke a
VaultToken. |
protected void |
LifecycleAwareSessionManager.revoke(VaultToken token)
Revoke a
VaultToken. |
static AppRoleAuthenticationOptions.RoleId |
AppRoleAuthenticationOptions.RoleId.wrapped(VaultToken initialToken)
Create a
AppRoleAuthenticationOptions.RoleId object that obtains its value from unwrapping a
response using the initial token from a Cubbyhole. |
static AppRoleAuthenticationOptions.SecretId |
AppRoleAuthenticationOptions.SecretId.wrapped(VaultToken initialToken)
Create a
AppRoleAuthenticationOptions.SecretId object that obtains its value from unwrapping a
response using the initial token from a Cubbyhole. |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationSteps |
AuthenticationSteps.Node.login(Function<? super T,? extends VaultToken> mappingFunction)
|
| Constructor and Description |
|---|
TokenAuthentication(VaultToken token)
Create a new
TokenAuthentication with a static token. |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.http.HttpHeaders |
VaultHttpHeaders.from(VaultToken vaultToken)
Create
HttpHeaders given VaultToken. |
| Modifier and Type | Method and Description |
|---|---|
VaultTokenResponse |
VaultTokenTemplate.renew(VaultToken vaultToken) |
VaultTokenResponse |
VaultTokenOperations.renew(VaultToken vaultToken)
Renew a
VaultToken. |
void |
VaultTokenTemplate.revoke(VaultToken vaultToken) |
void |
VaultTokenOperations.revoke(VaultToken vaultToken)
Revoke a
VaultToken. |
void |
VaultTokenTemplate.revokeOrphan(VaultToken vaultToken) |
void |
VaultTokenOperations.revokeOrphan(VaultToken vaultToken)
Revoke a
VaultToken but not its child tokens. |
| Modifier and Type | Method and Description |
|---|---|
VaultToken |
VaultInitializationResponse.getRootToken() |
VaultToken |
VaultTokenResponse.getToken()
Return a
VaultToken from the VaultResponse. |
static VaultToken |
VaultToken.of(char[] token)
Create a new
VaultToken. |
static VaultToken |
VaultToken.of(String token)
Create a new
VaultToken. |
Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.