Class TimeToLive


  • public class TimeToLive
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TimeToLive of​(int ttl, java.util.concurrent.TimeUnit unit)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        public static TimeToLive of​(int ttl,
                                    java.util.concurrent.TimeUnit unit)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object