Class GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder
- Enclosing class:
- GitHubAuthenticationOptions
Builder for
GitHubAuthenticationOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newGitHubAuthenticationOptions
instance.Configure the mount path.Configure the GitHub token.tokenSupplier
(Supplier<String> tokenSupplier) Configure theSupplier
to obtain a token.
-
Constructor Details
-
GithubAuthenticationOptionsBuilder
public GithubAuthenticationOptionsBuilder()
-
-
Method Details
-
path
Configure the mount path.- Parameters:
path
- must not be null or empty.- Returns:
this
GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder
.
-
token
Configure the GitHub token. Vault authentication will use this token as singleton. If you want to provide a dynamic token that can change over time, seetokenSupplier(Supplier)
.- Parameters:
token
- must not be null.- Returns:
this
GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder
.
-
tokenSupplier
public GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder tokenSupplier(Supplier<String> tokenSupplier) Configure theSupplier
to obtain a token.- Parameters:
tokenSupplier
- must not be null.- Returns:
this
GitHubAuthenticationOptions.GithubAuthenticationOptionsBuilder
.
-
build
Build a newGitHubAuthenticationOptions
instance.- Returns:
- a new
GitHubAuthenticationOptions
.
-