Class AuthenticationSteps.Node<T>
java.lang.Object
org.springframework.vault.authentication.AuthenticationSteps.Node<T>
- Type Parameters:
T- authentication state object type produced by this node.
- Enclosing class:
- AuthenticationSteps
Intermediate authentication step with authentication flow operators
represented as node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTerminal operation requesting atokenfrom Vault by posting the current state to VaultsuriTemplate.login(Function<? super T, ? extends VaultToken> mappingFunction) Terminal operation requesting atokenfrom Vault by issuing a HTTP request with the current state to VaultsuriTemplate.Terminal operation requesting atokenfrom Vault by posting the current state to VaultsuriTemplate.<R> AuthenticationSteps.Node<R>Transform the state object into a different object.Callback with the current state object.<R> AuthenticationSteps.Node<R>request(AuthenticationSteps.HttpRequest<R> request) Request data using aAuthenticationSteps.HttpRequest.zipWith(AuthenticationSteps.Node<? extends R> other) Combine the result from thisAuthenticationSteps.Nodeand another into aAuthenticationSteps.Pair.
-
Constructor Details
-
Node
public Node()
-
-
Method Details
-
map
Transform the state object into a different object.- Type Parameters:
R- resulting object type- Parameters:
mappingFunction- mapping function to be applied to the state object, must not be null.- Returns:
- the next
AuthenticationSteps.Node.
-
zipWith
public <R> AuthenticationSteps.Node<AuthenticationSteps.Pair<T,R>> zipWith(AuthenticationSteps.Node<? extends R> other) Combine the result from thisAuthenticationSteps.Nodeand another into aAuthenticationSteps.Pair.- Returns:
- the next
AuthenticationSteps.Node. - Since:
- 2.1
-
onNext
Callback with the current state object.- Parameters:
consumerFunction- consumer function to be called with the state object, must not be null.- Returns:
- the next
AuthenticationSteps.Node.
-
request
Request data using aAuthenticationSteps.HttpRequest.- Parameters:
request- the HTTP request definition, must not be null.- Returns:
- the next
AuthenticationSteps.Node.
-
loginAt
Terminal operation requesting atokenfrom Vault by posting the current state to VaultsuriTemplate. Terminal operation requesting atokenfrom Vault by logging into Vault sending the current state to the VaultauthMount. The actual request path is derived fromauthMountusing the patternauth/%s/login. If the request path needs to be customized, uselogin(String, String...)instead.- Parameters:
authMount- the name of the authentication mount, must not be null or empty.- Returns:
- the
AuthenticationSteps. - Since:
- 4.1
-
login
Terminal operation requesting atokenfrom Vault by posting the current state to VaultsuriTemplate.- Parameters:
uriTemplate- Vault authentication endpoint, must not be null or empty.uriVariables- URI variables for URI template expansion.- Returns:
- the
AuthenticationSteps.
-
login
Terminal operation requesting atokenfrom Vault by issuing a HTTP request with the current state to VaultsuriTemplate.- Parameters:
request- HTTP request definition.- Returns:
- the
AuthenticationSteps.
-
login
- Parameters:
mappingFunction- mapping function to be applied to the state object, must not be null.- Returns:
- the
AuthenticationSteps.
-