Class LoginOptions.Builder

java.lang.Object
codes.grow.packages.vault.LoginOptions.Builder
Enclosing class:
LoginOptions

public static final class LoginOptions.Builder extends Object
Builder of LoginOptions.
  • Method Details

    • setToken

      public LoginOptions.Builder setToken(boolean setToken)
      Sets whether the client switches to the new token (default true).
      Parameters:
      setToken - flag
      Returns:
      this builder
    • autoRenew

      public LoginOptions.Builder autoRenew(RenewalOptions options)
      Starts a TokenRenewer that renews the token and logs in again with the same method when it cannot be renewed any more.
      Parameters:
      options - renewal options
      Returns:
      this builder
    • build

      public LoginOptions build()
      Builds the options.
      Returns:
      the options