Package codes.grow.packages.vault
Class LoginOptions
java.lang.Object
codes.grow.packages.vault.LoginOptions
Options of
Auth.login(AuthMethod, LoginOptions).-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the renewal options when automatic renewal is on.static LoginOptions.Builderbuilder()Starts a builder.static LoginOptionsdefaults()Returns the defaults: use the new token for the client, no automatic renewal.booleansetToken()Returns whether the client switches to the new token.
-
Method Details
-
defaults
Returns the defaults: use the new token for the client, no automatic renewal.- Returns:
- the defaults
-
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
Returns the renewal options when automatic renewal is on.- Returns:
- the options, or empty
-