Class EncryptConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Configuration
    public class EncryptConfiguration
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    Encrypt beans configuration for password values
    • Constructor Detail

      • EncryptConfiguration

        @Autowired
        public EncryptConfiguration​(DataStore dataStore)
    • Method Detail

      • getBasicEncrypt

        @Bean(name="basicEncryptor")
        public org.jasypt.util.text.BasicTextEncryptor getBasicEncrypt()
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getStrongEncryptor

        @Bean(name="strongEncryptor")
        public org.jasypt.encryption.pbe.StandardPBEStringEncryptor getStrongEncryptor()
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception