Class SpringCloudConfigClientConfig
- java.lang.Object
-
- io.quarkus.spring.cloud.config.client.runtime.SpringCloudConfigClientConfig
-
@ConfigRoot(phase=BOOTSTRAP, name="spring-cloud-config") public class SpringCloudConfigClientConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description DurationconnectionTimeoutThe amount of time to wait when initially establishing a connection before giving up and timing out.booleanenabledIf enabled, will try to read the configuration from a Spring Cloud Config ServerbooleanfailFastIf set to true, the application will not stand up if it cannot obtain configuration from the Config ServerMap<String,String>headersCustom headers to pass the Spring Cloud Config Server when performing the HTTP requestOptional<String>keyPasswordPassword to recover key from KeyStore for SSL client authentication with the Config server If no value is provided, the key-store-password will be usedOptional<Path>keyStoreKeyStore to be used containing the SSL certificate for authentication with the Config server Can be either a classpath resource or a file system pathOptional<String>keyStorePasswordPassword of KeyStore to be used containing the SSL certificate for authentication with the Config serverOptional<String>labelThe label to be used to pull remote configuration properties.protected static StringNAMEOptional<String>passwordThe password to be used if the Config Server has BASIC Auth enabledDurationreadTimeoutThe amount of time to wait for a read on a socket before an exception is thrown.booleantrustCertsWhen using HTTPS and no keyStore has been specified, whether to trust all certificatesOptional<Path>trustStoreTrustStore to be used containing the SSL certificate used by the Config server Can be either a classpath resource or a file system pathOptional<String>trustStorePasswordPassword of TrustStore to be used containing the SSL certificate used by the Config serverStringurlThe Base URI where the Spring Cloud Config Server is availableOptional<String>usernameThe username to be used if the Config Server has BASIC Auth enabled
-
Constructor Summary
Constructors Constructor Description SpringCloudConfigClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanusernameAndPasswordSet()
-
-
-
Field Detail
-
NAME
protected static final String NAME
- See Also:
- Constant Field Values
-
enabled
@ConfigItem public boolean enabled
If enabled, will try to read the configuration from a Spring Cloud Config Server
-
failFast
@ConfigItem public boolean failFast
If set to true, the application will not stand up if it cannot obtain configuration from the Config Server
-
url
@ConfigItem(defaultValue="http://localhost:8888") public String url
The Base URI where the Spring Cloud Config Server is available
-
label
@ConfigItem public Optional<String> label
The label to be used to pull remote configuration properties. The default is set on the Spring Cloud Config Server (generally "master" when the server uses a Git backend).
-
connectionTimeout
@ConfigItem(defaultValue="10S") public Duration connectionTimeout
The amount of time to wait when initially establishing a connection before giving up and timing out.Specify `0` to wait indefinitely.
-
readTimeout
@ConfigItem(defaultValue="60S") public Duration readTimeout
The amount of time to wait for a read on a socket before an exception is thrown.Specify `0` to wait indefinitely.
-
username
@ConfigItem public Optional<String> username
The username to be used if the Config Server has BASIC Auth enabled
-
password
@ConfigItem public Optional<String> password
The password to be used if the Config Server has BASIC Auth enabled
-
trustStore
@ConfigItem public Optional<Path> trustStore
TrustStore to be used containing the SSL certificate used by the Config server Can be either a classpath resource or a file system path
-
trustStorePassword
@ConfigItem public Optional<String> trustStorePassword
Password of TrustStore to be used containing the SSL certificate used by the Config server
-
keyStore
@ConfigItem public Optional<Path> keyStore
KeyStore to be used containing the SSL certificate for authentication with the Config server Can be either a classpath resource or a file system path
-
keyStorePassword
@ConfigItem public Optional<String> keyStorePassword
Password of KeyStore to be used containing the SSL certificate for authentication with the Config server
-
keyPassword
@ConfigItem public Optional<String> keyPassword
Password to recover key from KeyStore for SSL client authentication with the Config server If no value is provided, the key-store-password will be used
-
trustCerts
@ConfigItem(defaultValue="false") public boolean trustCerts
When using HTTPS and no keyStore has been specified, whether to trust all certificates
-
-