Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @Configuration
  2. @EnableWebSecurity
  3. public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  4.  
  5. private String apiUser;
  6. private String apiPassword;
  7.  
  8. @Autowired
  9. public WebSecurityConfig(
  10. @Value("${web.security.api.user}") String apiUser, // stored in plain text in application.properties
  11. @Value("${web.security.api.password}") String apiPassword) // no reference in plaintext
  12. {
  13. this.apiUser = apiUser;
  14. this.apiPassword = apiPassword;
  15. }
  16.  
  17. .....
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement