@Configuration public class ApplicationConfig extends Object
| Constructor and Description |
|---|
ApplicationConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.CommandLineRunner |
init(OneOpsConfig config)
Show application arguments.
|
KeywhizAutomationClient |
keywhizAutomationClient(OneOpsConfig config,
KeywhizKeyStore keywhizKeyStore)
Returns the keywhiz automation client
|
KeywhizClient |
keywhizClient(OneOpsConfig config,
KeywhizKeyStore keywhizKeyStore)
Returns the keywhiz http client
|
KeywhizKeyStore |
keywhizKeyStore(OneOpsConfig config,
org.springframework.core.io.ResourceLoader loader)
Returns the keystrore for keywhiz server
|
LdapClient |
ldapClient(OneOpsConfig config,
KeywhizKeyStore keywhizKeyStore)
Returns the LDAP client.
|
KeywhizKeyStore |
ldapKeyStore(OneOpsConfig config,
org.springframework.core.io.ResourceLoader loader)
Returns the keystrore for LDAP server
|
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper()
Json (de)serializer config.
|
static PropertyVerifier |
propertyVerifierBean()
A
BeanFactoryPostProcessor to validate the properties. |
@Bean public static PropertyVerifier propertyVerifierBean()
BeanFactoryPostProcessor to validate the properties.PropertyVerifier@Bean public org.springframework.boot.CommandLineRunner init(OneOpsConfig config)
config - OneOpsConfigCommandLineRunner@Bean(name="keywhizKeyStore") public KeywhizKeyStore keywhizKeyStore(OneOpsConfig config, org.springframework.core.io.ResourceLoader loader)
config - Keywhiz config properties.loader - resource loader.KeywhizKeyStore@Bean(name="ldapKeyStore") public KeywhizKeyStore ldapKeyStore(OneOpsConfig config, org.springframework.core.io.ResourceLoader loader)
config - LDAP config properties.loader - resource loader.KeywhizKeyStore@Bean @Lazy public KeywhizClient keywhizClient(OneOpsConfig config, @Qualifier(value="keywhizKeyStore") KeywhizKeyStore keywhizKeyStore) throws GeneralSecurityException
GeneralSecurityException@Bean public KeywhizAutomationClient keywhizAutomationClient(OneOpsConfig config, @Qualifier(value="keywhizKeyStore") KeywhizKeyStore keywhizKeyStore) throws GeneralSecurityException
GeneralSecurityException@Bean @Lazy public LdapClient ldapClient(OneOpsConfig config, @Qualifier(value="ldapKeyStore") KeywhizKeyStore keywhizKeyStore) throws GeneralSecurityException
GeneralSecurityException@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
Copyright © 2018 Walmart, Inc.. All rights reserved.