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 Classes Modifier and Type Class Description protected static classEncryptionAutoConfiguration.KeyStoreConfiguration
-
Constructor Summary
Constructors Constructor Description EncryptionAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.crypto.encrypt.TextEncryptordefaultTextEncryptor(TextEncryptorLocator locator, org.springframework.cloud.bootstrap.encrypt.KeyProperties key)EnvironmentEncryptorenvironmentEncryptor(TextEncryptorLocator locator, org.springframework.security.crypto.encrypt.TextEncryptor encryptor)org.springframework.cloud.bootstrap.encrypt.KeyPropertieskeyProperties()
-
-
-
Method Detail
-
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)
-
-