Package org.springframework.vault.client
Class VaultHttpHeaders
java.lang.Object
org.springframework.vault.client.VaultHttpHeaders
Class providing utility methods to create Vault HTTP headers.
- Author:
- Mark Paluch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe HTTPX-Vault-MFAMFA credentials header.static final StringThe HTTPX-Vault-Namespaceheader field name.static final StringThe HTTPX-Vault-Tokenheader field name.static final StringThe HTTPX-Vault-Wrap-TTLheader to wrap a response and return a unwrapping token instead of the actual response. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpHeadersfrom(VaultToken vaultToken) CreateHttpHeadersgivenVaultToken.static HttpHeadersCreateHttpHeaderscontaining only the specified header key with its values.
-
Field Details
-
VAULT_NAMESPACE
The HTTPX-Vault-Namespaceheader field name.- Since:
- 2.2
- See Also:
-
VAULT_MFA_TOKEN
The HTTPX-Vault-MFAMFA credentials header.- Since:
- 4.1
- See Also:
-
VAULT_TOKEN
The HTTPX-Vault-Tokenheader field name.- See Also:
-
VAULT_WRAP_TTL
The HTTPX-Vault-Wrap-TTLheader to wrap a response and return a unwrapping token instead of the actual response.- Since:
- 4.1
- See Also:
-
-
Method Details
-
from
CreateHttpHeadersgivenVaultToken. The resulting object can be used to authenticate HTTP requests.- Parameters:
vaultToken- must not be null.- Returns:
HttpHeaderscontaining theVaultToken.
-
singleton
CreateHttpHeaderscontaining only the specified header key with its values.- Parameters:
header- the header name.values- the header values.- Returns:
HttpHeaderscontaining the given header along with its values.
-