Package codes.grow.packages.vault
Class LoginOptions.Builder
java.lang.Object
codes.grow.packages.vault.LoginOptions.Builder
- Enclosing class:
LoginOptions
Builder of
LoginOptions.-
Method Summary
Modifier and TypeMethodDescriptionautoRenew(RenewalOptions options) Starts aTokenRenewerthat renews the token and logs in again with the same method when it cannot be renewed any more.build()Builds the options.setToken(boolean setToken) Sets whether the client switches to the new token (default true).
-
Method Details
-
setToken
Sets whether the client switches to the new token (default true).- Parameters:
setToken- flag- Returns:
- this builder
-
autoRenew
Starts aTokenRenewerthat 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
Builds the options.- Returns:
- the options
-