Commit d299f347 authored by Aleksandr Ivanov's avatar Aleksandr Ivanov

setting truststore on load

parent 26e3f307
......@@ -29,6 +29,7 @@ import org.springframework.web.util.*;
import java.lang.reflect.*;
import java.util.*;
import javax.annotation.*;
import javax.servlet.*;
import javax.servlet.http.*;
......@@ -60,9 +61,18 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
@Autowired
protected ApplicationProperties applicationProperties;
@Autowired
protected FeedbackServiceConnectionProperties feedbackServiceConnectionProperties;
@Value("${csp.policyDirective}")
private String policyDirective;
@PostConstruct
public void postConstruct() {
System.setProperty("javax.net.ssl.trustStore", feedbackServiceConnectionProperties.getTrustStore().getAbsolutePath());
System.setProperty("javax.net.ssl.trustStorePassword", new String(feedbackServiceConnectionProperties.getTrustStorePassword()));
}
@Bean
public LdapUserDetailsService ldapUserDetailsService(ApplicationProperties applicationProperties,
LdapContextSource contextSource) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment