Class EncryptionAutoConfiguration

java.lang.Object
org.springframework.cloud.config.server.config.EncryptionAutoConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties @Import(org.springframework.cloud.config.server.config.SingleTextEncryptorConfiguration.class) public class EncryptionAutoConfiguration extends Object
Auto configuration for text encryptors and environment encryptors (non-web stuff). Users can provide beans of the same type as any or all of the beans defined here in application code to override the default behaviour.
Author:
Bartosz Wojtkiewicz, Rafal Zukowski, Dave Syer, Olga Maciaszek-Sharma
  • Constructor Details

    • EncryptionAutoConfiguration

      public EncryptionAutoConfiguration()
  • Method Details

    • keyProperties

      @Bean @ConditionalOnMissingBean public org.springframework.cloud.bootstrap.encrypt.KeyProperties keyProperties()
    • environmentEncryptor

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="spring.cloud.config.server.encrypt.enabled", matchIfMissing=true) @ConditionalOnBean(TextEncryptorLocator.class) public EnvironmentEncryptor environmentEncryptor(@Autowired(required=false) TextEncryptorLocator locator, org.springframework.security.crypto.encrypt.TextEncryptor encryptor)
    • defaultTextEncryptor

      @Bean @ConditionalOnMissingBean(org.springframework.security.crypto.encrypt.TextEncryptor.class) public org.springframework.security.crypto.encrypt.TextEncryptor defaultTextEncryptor(@Autowired(required=false) TextEncryptorLocator locator, org.springframework.cloud.bootstrap.encrypt.KeyProperties key)