@@ -0,0 +1,1714 @@
+/*%0A * Copyright 2016 EPAM Systems%0A *%0A *%0A * This file is part of EPAM Report Portal.%0A * https://github.com/reportportal/service-api%0A *%0A * Report Portal is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * Report Portal is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with Report Portal.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.epam.ta.reportportal.config;%0A%0Aimport org.jasypt.encryption.pbe.StandardPBEStringEncryptor;%0Aimport org.jasypt.util.text.BasicTextEncryptor;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A/**%0A * Encrypt beans configuration for password values%0A *%0A * @author Andrei_Ramanchuk%0A */%0A@Configuration%0Apublic class EncryptConfiguration %7B%0A%0A%09private static final String DEFAULT_PASS = %22reportportal%22;%0A%0A%09@Bean(name = %22basicEncryptor%22)%0A%09public BasicTextEncryptor getBasicEncrypt() %7B%0A%09%09BasicTextEncryptor basic = new BasicTextEncryptor();%0A%09%09basic.setPassword(DEFAULT_PASS);%0A%09%09return basic;%0A%09%7D%0A%0A%09@Bean(name = %22strongEncryptor%22)%0A%09public StandardPBEStringEncryptor getStrongEncryptor() %7B%0A%09%09StandardPBEStringEncryptor strong = new StandardPBEStringEncryptor();%0A%09%09strong.setPassword(DEFAULT_PASS);%0A%09%09strong.setAlgorithm(%22PBEWithMD5AndTripleDES%22);%0A%09%09return strong;%0A%09%7D%0A%7D

Encrypt bean configuration was added.