public class RequestedSecret extends Object
RequestedSecret.Mode
.
A RequestedSecret
can be renewing or rotating.
RequestedSecret.Mode
,
Lease.isRenewable()
Modifier and Type | Class and Description |
---|---|
static class |
RequestedSecret.Mode |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static RequestedSecret |
from(RequestedSecret.Mode mode,
String path)
|
RequestedSecret.Mode |
getMode() |
String |
getPath() |
int |
hashCode() |
static RequestedSecret |
renewable(String path)
Create a renewable
RequestedSecret at path . |
static RequestedSecret |
rotating(String path)
Create a rotating
RequestedSecret at path . |
String |
toString() |
public static RequestedSecret renewable(String path)
RequestedSecret
at path
. A lease associated with
this secret will be renewed if the lease is qualified for renewal. The lease is no
longer valid after expiry.path
- must not be null or empty, must not start with a slash.RequestedSecret
.public static RequestedSecret rotating(String path)
RequestedSecret
at path
. 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.path
- must not be null or empty, must not start with a slash.RequestedSecret
.public static RequestedSecret from(RequestedSecret.Mode mode, String path)
mode
- must not be null.path
- must not be null or empty, must not start with a slash.RequestedSecret
.rotating(String)
,
renewable(String)
public String getPath()
public RequestedSecret.Mode getMode()
RequestedSecret.Mode
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.