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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.encrypt.TextEncryptor
defaultTextEncryptor
(TextEncryptorLocator locator, org.springframework.cloud.bootstrap.encrypt.KeyProperties key) environmentEncryptor
(TextEncryptorLocator locator, org.springframework.security.crypto.encrypt.TextEncryptor encryptor) org.springframework.cloud.bootstrap.encrypt.KeyProperties
-
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)
-