Example usage for org.springframework.security.web.authentication LoginUrlAuthenticationEntryPoint afterPropertiesSet

List of usage examples for org.springframework.security.web.authentication LoginUrlAuthenticationEntryPoint afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication LoginUrlAuthenticationEntryPoint afterPropertiesSet.

Prototype

public void afterPropertiesSet() throws Exception 

Source Link

Usage

From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java

@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 {

    final LoginUrlAuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint(loginFormUrl);
    entryPoint.afterPropertiesSet();
    boolean forceSSL = Boolean.parseBoolean(forceHttps);
    entryPoint.setForceHttps(forceSSL);//  www. j a  v a 2  s  .  c om
    return entryPoint;
}

From source file:ch.astina.hesperid.web.services.SecurityModule.java

/**
 * Web form <code>AuthenticationEntryPoint</code>
 *///  ww w  .  jav  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;
}