T - authentication state object type produced by this node.public static class AuthenticationSteps.Node<T> extends Object
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationSteps |
login(AuthenticationSteps.HttpRequest<VaultResponse> request)
Terminal operation requesting a
token from Vault by issuing
a HTTP request with the current state to Vaults uriTemplate. |
AuthenticationSteps |
login(Function<? super T,? extends VaultToken> mappingFunction)
|
AuthenticationSteps |
login(String uriTemplate,
String... uriVariables)
Terminal operation requesting a
token from Vault by posting
the current state to Vaults uriTemplate. |
<R> AuthenticationSteps.Node<R> |
map(Function<? super T,? extends R> mappingFunction)
Transform the state object into a different object.
|
AuthenticationSteps.Node<T> |
onNext(Consumer<? super T> consumerFunction)
Callback with the current state object.
|
<R> AuthenticationSteps.Node<R> |
request(AuthenticationSteps.HttpRequest<R> request)
Request data using a
AuthenticationSteps.HttpRequest. |
<R> AuthenticationSteps.Node<AuthenticationSteps.Pair<T,R>> |
zipWith(AuthenticationSteps.Node<? extends R> other)
Combine the result from this
AuthenticationSteps.Node and another into a AuthenticationSteps.Pair. |
public <R> AuthenticationSteps.Node<R> map(Function<? super T,? extends R> mappingFunction)
R - resulting object typemappingFunction - mapping function to be applied to the state object, must
not be null.AuthenticationSteps.Node.public <R> AuthenticationSteps.Node<AuthenticationSteps.Pair<T,R>> zipWith(AuthenticationSteps.Node<? extends R> other)
AuthenticationSteps.Node and another into a AuthenticationSteps.Pair.AuthenticationSteps.Node.public AuthenticationSteps.Node<T> onNext(Consumer<? super T> consumerFunction)
consumerFunction - consumer function to be called with the state object,
must not be null.AuthenticationSteps.Node.public <R> AuthenticationSteps.Node<R> request(AuthenticationSteps.HttpRequest<R> request)
AuthenticationSteps.HttpRequest.request - the HTTP request definition, must not be null.AuthenticationSteps.Node.public AuthenticationSteps login(String uriTemplate, String... uriVariables)
token from Vault by posting
the current state to Vaults uriTemplate.uriTemplate - Vault authentication endpoint, must not be null
or empty.uriVariables - URI variables for URI template expansion.AuthenticationSteps.public AuthenticationSteps login(AuthenticationSteps.HttpRequest<VaultResponse> request)
token from Vault by issuing
a HTTP request with the current state to Vaults uriTemplate.request - HTTP request definition.AuthenticationSteps.public AuthenticationSteps login(Function<? super T,? extends VaultToken> mappingFunction)
mappingFunction - mapping function to be applied to the state object, must
not be null.AuthenticationSteps.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.