Interface LeasingSecretBackendMetadata
-
- All Superinterfaces:
SecretBackendMetadata
public interface LeasingSecretBackendMetadata extends SecretBackendMetadata
Lease extension toSecretBackendMetadataproviding alease mode.- Since:
- 1.1
- Author:
- Mark Paluch
- See Also:
RequestedSecret
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidafterRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret, org.springframework.vault.core.lease.SecretLeaseContainer container)Callback method after registering asecretwithSecretLeaseContainer.default voidbeforeRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret, org.springframework.vault.core.lease.SecretLeaseContainer container)Callback method before registering asecretwithSecretLeaseContainer.org.springframework.vault.core.lease.domain.RequestedSecret.ModegetLeaseMode()Return the lease mode of this secret backend.-
Methods inherited from interface org.springframework.cloud.vault.config.SecretBackendMetadata
getName, getPath, getPropertyTransformer, getVariables
-
-
-
-
Method Detail
-
getLeaseMode
org.springframework.vault.core.lease.domain.RequestedSecret.Mode getLeaseMode()
Return the lease mode of this secret backend.Lease mode is considered only by lease-aware property sources.
- Returns:
- the lease mode of this secret backend.
- Since:
- 1.1
-
beforeRegistration
default void beforeRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret, org.springframework.vault.core.lease.SecretLeaseContainer container)Callback method before registering asecretwithSecretLeaseContainer. Registering abeforecallback allows event consumption before the secrets are visible in the associated property source.- Parameters:
secret- the requested secret.container- the lease container that was used to request the secret.- Since:
- 3.0
-
afterRegistration
default void afterRegistration(org.springframework.vault.core.lease.domain.RequestedSecret secret, org.springframework.vault.core.lease.SecretLeaseContainer container)Callback method after registering asecretwithSecretLeaseContainer. Registering aaftercallback 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.- Parameters:
secret- the requested secret.container- the lease container that was used to request the secret.- Since:
- 3.0
-
-