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 newCubbyholeAuthenticationOptionsinstance.initialToken(VaultToken initialToken) Configure the initialVaultTokento 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 theUnwrappingEndpointsto use.wrapped()Configure whether to use wrapped token responses.
-
Method Details
-
initialToken
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder initialToken(VaultToken initialToken) Configure the initialVaultTokento access Cubbyhole.- Parameters:
initialToken- must not be null.- Returns:
thisCubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder.
-
path
Configure the cubbyhole path, such ascubbyhole/token. Expects a token in thedataresponse.- Parameters:
path- must not be empty or null.- Returns:
thisCubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder.
-
unwrappingEndpoints
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder unwrappingEndpoints(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpointsto use.- Parameters:
endpoints- must not be null.- Returns:
thisCubbyholeAuthenticationOptions.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:
thisCubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder.- Since:
- 1.0.1
-
build
Build a newCubbyholeAuthenticationOptionsinstance. Requirespath(String)orwrapped()to be configured.- Returns:
- a new
CubbyholeAuthenticationOptions.
-