Package org.springframework.security.web.authentication.rememberme

Examples of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices


                    && logoutHandler == null) {
                this.logoutHandler = (LogoutHandler) rememberMeServices;
            }
            return rememberMeServices;
        }
        AbstractRememberMeServices tokenRememberMeServices = createRememberMeServices(
                http, key);
        tokenRememberMeServices.setParameter(rememberMeParameter);
        tokenRememberMeServices.setCookieName(rememberMeCookieName);
        if (tokenValiditySeconds != null) {
            tokenRememberMeServices
                    .setTokenValiditySeconds(tokenValiditySeconds);
        }
        if (useSecureCookie != null) {
            tokenRememberMeServices.setUseSecureCookie(useSecureCookie);
        }
        tokenRememberMeServices.afterPropertiesSet();
        logoutHandler = tokenRememberMeServices;
        rememberMeServices = tokenRememberMeServices;
        return tokenRememberMeServices;
    }
View Full Code Here


            logger.info("RememberMeServices is not an instance of AbstractRememberMeServices. UserDetailsService will" +
                    " not be automatically injected.");
            return;
        }

        AbstractRememberMeServices services = (AbstractRememberMeServices) rms;

        BeanDefinition beanDefinition = beanFactory.getBeanDefinition(rememberMeServicesId);
        PropertyValue pv = beanDefinition.getPropertyValues().getPropertyValue("userDetailsService");

        if (pv == null) {
            // If it doesn't already have a UserDetailsService set, then set it.
            services.setUserDetailsService(getUserDetailsService());
        } else {
            // If already set, then attempt to locate a caching version of the injected UserDetailsService
            UserDetailsService cachingUserService = getCachingUserService(pv.getValue());

            if (cachingUserService != null) {
                services.setUserDetailsService(cachingUserService);
            }
        }
    }
View Full Code Here

                    && logoutHandler == null) {
                this.logoutHandler = (LogoutHandler) rememberMeServices;
            }
            return rememberMeServices;
        }
        AbstractRememberMeServices tokenRememberMeServices = createRememberMeServices(
                http, key);
        tokenRememberMeServices.setParameter(rememberMeParameter);
        tokenRememberMeServices.setCookieName(rememberMeCookieName);
        if (tokenValiditySeconds != null) {
            tokenRememberMeServices
                    .setTokenValiditySeconds(tokenValiditySeconds);
        }
        if (useSecureCookie != null) {
            tokenRememberMeServices.setUseSecureCookie(useSecureCookie);
        }
        tokenRememberMeServices.afterPropertiesSet();
        logoutHandler = tokenRememberMeServices;
        rememberMeServices = tokenRememberMeServices;
        return tokenRememberMeServices;
    }
View Full Code Here

            catch(Exception e) {
                throw new RuntimeException(e);
            }

            if (rms instanceof AbstractRememberMeServices) {
                AbstractRememberMeServices arms = (AbstractRememberMeServices) rms;
                arms.setUserDetailsService(new RememberMeUserDetailsService(securityManager));
                arms.setKey(rmsConfig.getKey());
            }
//            if (rms instanceof GeoServerTokenBasedRememberMeServices) {
//                ((GeoServerTokenBasedRememberMeServices) rms).setUserGroupServiceName(rmsConfig.getUserGroupService());
//            }
            return rms;
View Full Code Here

TOP

Related Classes of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.