Uses of Class
de.stklcode.jvault.connector.HTTPVaultConnectorBuilder
Package
Description
Java Vault Connector base package - contains
VaultConnector
interface and
default implementation.-
Uses of HTTPVaultConnectorBuilder in de.stklcode.jvault.connector
Modifier and TypeMethodDescriptionstatic HTTPVaultConnectorBuilder
HTTPVaultConnector.builder()
Get a new builder for a connector.static HTTPVaultConnectorBuilder
Get a new builder for a connector.static HTTPVaultConnectorBuilder
Get a new builder for a connector.HTTPVaultConnectorBuilder.fromEnv()
Build connector based on theVAULT_ADDR
andVAULT_CACERT
(optional) environment variables.HTTPVaultConnectorBuilder.withBaseURL
(String baseURL) Set base URL, e.g.HTTPVaultConnectorBuilder.withBaseURL
(URI baseURL) Set base URL, e.g.Set hostname (default: 127.0.0.1).HTTPVaultConnectorBuilder.withNumberOfRetries
(int numberOfRetries) Define the number of retries to attempt on 5xx errors.HTTPVaultConnectorBuilder.withoutTLS()
Convenience Method for NOT using TLS.Set port (default: 8200).HTTPVaultConnectorBuilder.withPrefix
(String prefix) Set API prefix.HTTPVaultConnectorBuilder.withTimeout
(int milliseconds) Define a custom timeout for the HTTP connection.HTTPVaultConnectorBuilder.withTLS()
Convenience Method for TLS usage (enabled by default).HTTPVaultConnectorBuilder.withTLS
(boolean useTLS) Set TLS usage (default: TRUE).Set TLS usage (default: TRUE).Convenience Method for TLS usage (enabled by default).Set token for automatic authentication, usingbuildAndAuth()
.HTTPVaultConnectorBuilder.withTrustedCA
(Path cert) Add a trusted CA certificate for HTTPS connections.HTTPVaultConnectorBuilder.withTrustedCA
(X509Certificate cert) Add a trusted CA certificate for HTTPS connections.