Class JasyptConfig

java.lang.Object
tech.corefinance.common.config.JasyptConfig

@Configuration @ConditionalOnProperty(prefix="tech.corefinance.common.enabled", name="property-encryption", havingValue="true", matchIfMissing=true) public class JasyptConfig extends Object
  • Constructor Details

    • JasyptConfig

      public JasyptConfig()
  • Method Details

    • stringEncryptor

      @Bean(name="jasyptStringEncryptor") public org.jasypt.encryption.StringEncryptor stringEncryptor(@Value("${jasypt.encryptor.password}") String encryptPassword, @Value("${jasypt.encryptor.algorithm}") String algorithm, @Value("${jasypt.encryptor.salt-generator-class-name}") String saltGeneratorClassName, @Value("${jasypt.encryptor.key-obtention-iterations}") String keyObtentionIterations, @Value("${jasypt.encryptor.pool-size}") String poolSize, @Value("${jasypt.encryptor.provider-name}") String providerName, @Value("${jasypt.encryptor.string-output-type}") String stringOutputType)