public abstract class VaultHttpHeaders extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VAULT_NAMESPACE
The HTTP
X-Vault-Namespace header field name. |
static String |
VAULT_TOKEN
The HTTP
X-Vault-Token header field name. |
Modifier and Type | Method and Description |
---|---|
static HttpHeaders |
from(VaultToken vaultToken)
Create
HttpHeaders given VaultToken . |
public static final String VAULT_TOKEN
X-Vault-Token
header field name.public static final String VAULT_NAMESPACE
X-Vault-Namespace
header field name.public static HttpHeaders from(VaultToken vaultToken)
HttpHeaders
given VaultToken
. The resulting object can be
used to authenticate HTTP requests.vaultToken
- must not be null.HttpHeaders
containing the VaultToken
.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.