Class LoginOptions

java.lang.Object
codes.grow.packages.vault.LoginOptions

public final class LoginOptions extends Object
  • Method Details

    • defaults

      public static LoginOptions defaults()
      Returns the defaults: use the new token for the client, no automatic renewal.
      Returns:
      the defaults
    • builder

      public static LoginOptions.Builder builder()
      Starts a builder.
      Returns:
      a new builder
    • setToken

      public boolean setToken()
      Returns whether the client switches to the new token.
      Returns:
      the flag (default true)
    • autoRenew

      public Optional<RenewalOptions> autoRenew()
      Returns the renewal options when automatic renewal is on.
      Returns:
      the options, or empty