Class CredHubAutoConfiguration
java.lang.Object
org.springframework.credhub.autoconfig.CredHubAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties
public class CredHubAutoConfiguration
extends Object
Auto-configuration
for Spring CredHub support beans.- Author:
- Scott Frederick, Daniel Lavoie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate aClientOptions
bean and populate it from properties.Create aCredHubProperties
bean and populate it from properties.
-
Constructor Details
-
CredHubAutoConfiguration
public CredHubAutoConfiguration()
-
-
Method Details
-
credHubProperties
@Bean @ConditionalOnMissingBean @ConditionalOnProperty("spring.credhub.url") @ConfigurationProperties(prefix="spring.credhub") public CredHubProperties credHubProperties()Create aCredHubProperties
bean and populate it from properties.- Returns:
- a
CredHubProperties
bean
-
clientOptions
@Bean @ConditionalOnMissingBean @ConditionalOnProperty("spring.credhub.url") @ConfigurationProperties(prefix="spring.credhub") public ClientOptions clientOptions()Create aClientOptions
bean and populate it from properties.- Returns:
- a
ClientOptions
bean
-