- java.lang.Object
-
- io.github.jopenlibs.vault.api.mounts.TimeToLive
-
public class TimeToLive extends java.lang.ObjectA container for Time To Live information sent to mounts endpoints on the Secret Engine backend as REST payload. This class is meant for use with a static
TimeToLive.of(int, TimeUnit)method pattern style. Example usage:TimeToLive.of(1, TimeUnit.HOURS);Note that the only accepted
TimeUnitwhich Vault backend understands are:TimeUnit.SECONDSTimeUnit.MINUTESTimeUnit.HOURS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeToLiveof(int ttl, java.util.concurrent.TimeUnit unit)java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static TimeToLive of(int ttl, java.util.concurrent.TimeUnit unit)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-