Class RequestedSecret
java.lang.Object
org.springframework.vault.core.lease.domain.RequestedSecret
Represents a requested secret from a specific Vault path associated with a lease
RequestedSecret.Mode.
A RequestedSecret can be renewing or rotating.
- Author:
- Mark Paluch, Pierre-Jean Vardanega
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RequestedSecretfrom(RequestedSecret.Mode mode, String path) getMode()getPath()inthashCode()static RequestedSecretCreate a renewableRequestedSecretatpath.static RequestedSecretCreate a rotatingRequestedSecretatpath.toString()
-
Method Details
-
renewable
Create a renewableRequestedSecretatpath. A lease associated with this secret will be renewed if the lease is qualified for renewal. The lease is no longer valid after expiry.- Parameters:
path- must not be null or empty, must not start with a slash.- Returns:
- the renewable
RequestedSecret.
-
rotating
Create a rotatingRequestedSecretatpath. A lease associated with this secret will be renewed if the lease is qualified for renewal. Once the lease expires, a new secret with a new lease is obtained.- Parameters:
path- must not be null or empty, must not start with a slash.- Returns:
- the rotating
RequestedSecret.
-
from
- Parameters:
mode- must not be null.path- must not be null or empty, must not start with a slash.- Returns:
- the rotating
RequestedSecret. - See Also:
-
getPath
- Returns:
- the Vault path of the requested secret.
-
getMode
- Returns:
- lease mode.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-