java.lang.Object
io.github.jopenlibs.vault.api.sys.mounts.TimeToLive

public class TimeToLive extends Object

A 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 TimeUnit which Vault backend understands are:

  • TimeUnit.SECONDS
  • TimeUnit.MINUTES
  • TimeUnit.HOURS