Package | Description |
---|---|
org.springframework.vault.core.lease |
The core package implementing lease renewal and secret rotation.
|
org.springframework.vault.core.lease.domain |
Lease domain classes.
|
org.springframework.vault.core.lease.event |
Support classes for lease application events.
|
Modifier and Type | Method and Description |
---|---|
protected Lease |
SecretLeaseContainer.doRenewLease(RequestedSecret requestedSecret,
Lease lease)
Renew a
Lease for a RequestedSecret . |
Modifier and Type | Method and Description |
---|---|
protected Lease |
SecretLeaseContainer.doRenewLease(RequestedSecret requestedSecret,
Lease lease)
Renew a
Lease for a RequestedSecret . |
protected void |
SecretLeaseContainer.doRevokeLease(RequestedSecret requestedSecret,
Lease lease)
Revoke the
Lease . |
protected void |
SecretLeaseEventPublisher.onAfterLeaseRenewed(RequestedSecret requestedSecret,
Lease lease)
Hook method called when a
Lease is renewed. |
protected void |
SecretLeaseEventPublisher.onAfterLeaseRevocation(RequestedSecret requestedSecret,
Lease lease)
Hook method called after triggering revocation for a
Lease . |
protected void |
SecretLeaseEventPublisher.onBeforeLeaseRevocation(RequestedSecret requestedSecret,
Lease lease)
Hook method called before triggering revocation for a
Lease . |
protected void |
SecretLeaseEventPublisher.onError(RequestedSecret requestedSecret,
Lease lease,
Exception e)
Hook method called when an error occurred during secret retrieval, lease renewal,
and other Vault interactions.
|
protected void |
SecretLeaseContainer.onLeaseExpired(RequestedSecret requestedSecret,
Lease lease)
Hook method called when a
Lease expires. |
protected void |
SecretLeaseEventPublisher.onLeaseExpired(RequestedSecret requestedSecret,
Lease lease)
Hook method called when a
Lease expires. |
protected void |
SecretLeaseEventPublisher.onSecretsObtained(RequestedSecret requestedSecret,
Lease lease,
Map<String,Object> body)
Hook method called when secrets were obtained.
|
Modifier and Type | Method and Description |
---|---|
static Lease |
Lease.fromTimeToLive(Duration leaseDuration)
Create a new non-renewable
Lease , without a leaseId and specified
duration. |
static Lease |
Lease.fromTimeToLive(long leaseDuration)
Deprecated.
since 2.0, use
fromTimeToLive(Duration) for time unit safety. |
static Lease |
Lease.none()
Factory method to return a non-renewable, zero-duration
Lease . |
static Lease |
Lease.of(String leaseId,
Duration leaseDuration,
boolean renewable)
Create a new
Lease . |
static Lease |
Lease.of(String leaseId,
long leaseDurationSeconds,
boolean renewable)
Deprecated.
since 2.0, use
of(String, Duration, boolean) for time unit
safety. |
Modifier and Type | Method and Description |
---|---|
Lease |
SecretLeaseEvent.getLease() |
Constructor and Description |
---|
AfterSecretLeaseRenewedEvent(RequestedSecret requestedSecret,
Lease lease)
|
AfterSecretLeaseRevocationEvent(RequestedSecret requestedSecret,
Lease lease)
|
BeforeSecretLeaseRevocationEvent(RequestedSecret requestedSecret,
Lease lease)
|
SecretLeaseCreatedEvent(RequestedSecret requestedSecret,
Lease lease,
Map<String,Object> secrets)
|
SecretLeaseErrorEvent(RequestedSecret requestedSecret,
Lease lease,
Throwable exception)
|
SecretLeaseEvent(RequestedSecret requestedSecret,
Lease lease)
|
SecretLeaseExpiredEvent(RequestedSecret requestedSecret,
Lease lease)
|
Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.