public interface LeasingSecretBackendMetadata extends SecretBackendMetadata
SecretBackendMetadata providing a
lease mode.RequestedSecret| Modifier and Type | Method and Description |
|---|---|
default void |
afterRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret,
org.springframework.vault.core.lease.SecretLeaseContainer container)
Callback method after registering a
secret with
SecretLeaseContainer. |
default void |
beforeRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret,
org.springframework.vault.core.lease.SecretLeaseContainer container)
Callback method before registering a
secret with
SecretLeaseContainer. |
org.springframework.vault.core.lease.domain.RequestedSecret.Mode |
getLeaseMode()
Return the lease mode of this secret backend.
|
getName, getPath, getPropertyTransformer, getVariablesorg.springframework.vault.core.lease.domain.RequestedSecret.Mode getLeaseMode()
Lease mode is considered only by lease-aware property sources.
default void beforeRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret,
org.springframework.vault.core.lease.SecretLeaseContainer container)
secret with
SecretLeaseContainer. Registering a before callback allows event
consumption before the secrets are visible in the associated property source.secret - the requested secret.container - the lease container that was used to request the secret.default void afterRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret,
org.springframework.vault.core.lease.SecretLeaseContainer container)
secret with
SecretLeaseContainer. Registering a after callback allows event
consumption after the secrets are visible in the associated property source. Note
that this callback does not necessarily guarantee notification of the initial
secrets retrieval.secret - the requested secret.container - the lease container that was used to request the secret.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.