Class CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
- Enclosing class:
- CubbyholeAuthenticationOptions
public static class CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
extends Object
Builder for
CubbyholeAuthenticationOptions
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newCubbyholeAuthenticationOptions
instance.initialToken
(VaultToken initialToken) Configure the initialVaultToken
to access Cubbyhole.Configure the cubbyhole path, such ascubbyhole/token
.selfLookup
(boolean selfLookup) Configure whether to perform a self-lookup after token retrieval.unwrappingEndpoints
(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpoints
to use.wrapped()
Configure whether to use wrapped token responses.
-
Method Details
-
initialToken
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder initialToken(VaultToken initialToken) Configure the initialVaultToken
to access Cubbyhole.- Parameters:
initialToken
- must not be null.- Returns:
this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.
-
path
Configure the cubbyhole path, such ascubbyhole/token
. Expects a token in thedata
response.- Parameters:
path
- must not be empty or null.- Returns:
this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.
-
unwrappingEndpoints
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder unwrappingEndpoints(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpoints
to use.- Parameters:
endpoints
- must not be null.- Returns:
this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
- Since:
- 2.2
-
wrapped
Configure whether to use wrapped token responses. -
selfLookup
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder selfLookup(boolean selfLookup) Configure whether to perform a self-lookup after token retrieval. Defaults to true.- Parameters:
selfLookup
- true to perform a self-lookup or false to disable it.- Returns:
this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.- Since:
- 1.0.1
-
build
Build a newCubbyholeAuthenticationOptions
instance. Requirespath(String)
orwrapped()
to be configured.- Returns:
- a new
CubbyholeAuthenticationOptions
.
-