Example usage for org.springframework.security.web.authentication NullRememberMeServices NullRememberMeServices

List of usage examples for org.springframework.security.web.authentication NullRememberMeServices NullRememberMeServices

Introduction

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

Prototype

NullRememberMeServices

Source Link

Usage

From source file:it.scoppelletti.programmerpower.web.security.SsoAuthenticationService.java

/**
 * Costruttore.//from w ww  . j a v a 2s. c  om
 */
public SsoAuthenticationService() {
    myRememberMeServices = new NullRememberMeServices();
    myAuthDetailsSource = new WebAuthenticationDetailsSource();
}

From source file:org.vaadin.spring.security.AbstractVaadinSecurity.java

@Override
public void afterPropertiesSet() throws Exception {
    try {/*from w  w  w  .j ava 2s . c o m*/
        authenticationManager = applicationContext.getBean(AuthenticationManager.class);
        logger.info("Using authentication manager {}", authenticationManager);
    } catch (NoSuchBeanDefinitionException ex) {
        logger.warn("No AuthenticationManager found! Some security methods will not be available.");
    }

    try {
        accessDecisionManager = applicationContext.getBean(AccessDecisionManager.class);
        logger.info("Using access decision manager {}", accessDecisionManager);
    } catch (NoSuchBeanDefinitionException ex) {
        accessDecisionManager = null;
        logger.warn("No AccessDecisionManager found! Some security methods will not be available.");
    }

    try {
        rememberMeServices = applicationContext.getBean(RememberMeServices.class);
        logger.info("Using RememberMeServices {}", rememberMeServices);
    } catch (NoSuchBeanDefinitionException ex) {
        rememberMeServices = new NullRememberMeServices();
        logger.info("No RememberMeServices found. Using NullRememberMeServices.");
    }
}

From source file:de.itsvs.cwtrpc.security.AbstractRpcAuthenticationProcessingFilter.java

@Override
public void afterPropertiesSet() throws ServletException {
    super.afterPropertiesSet();

    Assert.notNull(getAuthenticationManager(), "'authenticationManager' must be specified");

    if (getAuthenticationSuccessHandler() == null) {
        final DefaultRpcAuthenticationSuccessHandler handler;

        handler = new DefaultRpcAuthenticationSuccessHandler();
        handler.setServletContext(getServletContext());
        handler.afterPropertiesSet();/* ww  w .j  av a 2  s.com*/
        setAuthenticationSuccessHandler(handler);
    }
    if (getAuthenticationFailureHandler() == null) {
        final SimpleRpcAuthenticationFailureHandler handler;

        handler = new SimpleRpcAuthenticationFailureHandler();
        handler.setServletContext(getServletContext());
        handler.afterPropertiesSet();
        setAuthenticationFailureHandler(handler);
    }
    if (getSessionAuthenticationStrategy() == null) {
        setSessionAuthenticationStrategy(new SessionFixationProtectionStrategy());
    }
    if (getAuthenticationDetailsSource() == null) {
        setAuthenticationDetailsSource(new WebAuthenticationDetailsSource());
    }
    if (getRememberMeServices() == null) {
        setRememberMeServices(new NullRememberMeServices());
    }
    if (getRpcHttpSessionStrategy() == null) {
        setRpcHttpSessionStrategy(new DefaultRpcHttpSessionStrategy());
    }
}

From source file:net.kamhon.ieagle.security.AuthenticationUtil.java

/**
 * Override the function to prevent validate on others properties like targetUrl and etc.
 *///  w  ww  . jav  a2s  .c  o  m
@Override
public void afterPropertiesSet() {
    if (getRememberMeServices() == null) {
        setRememberMeServices(new NullRememberMeServices());
    }

    // super.afterPropertiesSet();
}