Class EncryptionAutoConfiguration
java.lang.Object
org.springframework.cloud.config.server.config.EncryptionAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter(DefaultTextEncryptionAutoConfiguration.class)
public class EncryptionAutoConfiguration
extends Object
Autoconfiguration 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenvironmentEncryptor(TextEncryptorLocator locator, org.springframework.security.crypto.encrypt.TextEncryptor encryptor) singleTextEncryptorLocator(org.springframework.security.crypto.encrypt.TextEncryptor encryptor)
-
Constructor Details
-
EncryptionAutoConfiguration
public EncryptionAutoConfiguration()
-
-
Method Details
-
singleTextEncryptorLocator
@Bean @ConditionalOnBean(org.springframework.security.crypto.encrypt.TextEncryptor.class) @ConditionalOnMissingBean(TextEncryptorLocator.class) public SingleTextEncryptorLocator singleTextEncryptorLocator(org.springframework.security.crypto.encrypt.TextEncryptor encryptor) -
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)
-