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
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpHeaders
from
(VaultToken vaultToken) CreateHttpHeaders
givenVaultToken
.
-
Field Details
-
VAULT_TOKEN
The HTTPX-Vault-Token
header field name.- See Also:
-
VAULT_NAMESPACE
The HTTPX-Vault-Namespace
header field name.- Since:
- 2.2
- See Also:
-
-
Method Details
-
from
CreateHttpHeaders
givenVaultToken
. The resulting object can be used to authenticate HTTP requests.- Parameters:
vaultToken
- must not be null.- Returns:
HttpHeaders
containing theVaultToken
.
-