List of usage examples for org.springframework.security.web.authentication LoginUrlAuthenticationEntryPoint LoginUrlAuthenticationEntryPoint
LoginUrlAuthenticationEntryPoint
From source file:ch.astina.hesperid.web.services.SecurityModule.java
/** * Web form <code>AuthenticationEntryPoint</code> *//* w ww .ja v a 2 s .c o m*/ @Marker(SpringSecurityServices.class) public static AuthenticationEntryPoint buildAuthenticationEntryPoint( @Inject @Value("${spring-security.loginform.url}") final String loginFormUrl, @Inject @Value("${spring-security.force.ssl.login}") final String forceHttps) throws Exception { LoginUrlAuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint(); entryPoint.setLoginFormUrl(loginFormUrl); entryPoint.afterPropertiesSet(); boolean forceSSL = Boolean.parseBoolean(forceHttps); entryPoint.setForceHttps(forceSSL); return entryPoint; }