Package nu.localhost.tapestry5.springsecurity.services

Examples of nu.localhost.tapestry5.springsecurity.services.SecurityModule


    @Primary
    public static void addSpringSecurityWorker(
            OrderedConfiguration<ComponentClassTransformWorker2> configuration,
            SecurityChecker securityChecker ) {

        configuration.add( "SpringSecurity", new SpringSecurityWorker( securityChecker ), "after:CleanupRender" );
    }
View Full Code Here


    @Primary
    public static void addSpringSecurityWorker(
            OrderedConfiguration<ComponentClassTransformWorker2> configuration,
            SecurityChecker securityChecker ) {

        configuration.add( "SpringSecurity", new SpringSecurityWorker( securityChecker ), "after:CleanupRender" );
    }
View Full Code Here

    @Marker( SpringSecurityServices.class )
    public static SecurityChecker buildSecurityChecker(
            @SpringSecurityServices final AccessDecisionManager accessDecisionManager,
            @SpringSecurityServices final AuthenticationManager authenticationManager ) throws Exception {

        final StaticSecurityChecker checker = new StaticSecurityChecker();
        checker.setAccessDecisionManager( accessDecisionManager );
        checker.setAuthenticationManager( authenticationManager );
        checker.afterPropertiesSet();
        return checker;
    }
View Full Code Here

    @Marker( SpringSecurityServices.class )
    public static SecurityChecker buildSecurityChecker(
            @SpringSecurityServices final AccessDecisionManager accessDecisionManager,
            @SpringSecurityServices final AuthenticationManager authenticationManager ) throws Exception {

        final StaticSecurityChecker checker = new StaticSecurityChecker();
        checker.setAccessDecisionManager( accessDecisionManager );
        checker.setAuthenticationManager( authenticationManager );
        checker.afterPropertiesSet();
        return checker;
    }
View Full Code Here

            @Inject @Value( "${spring-security.accessDenied.url}" ) final String accessDeniedUrl ) throws Exception {

        SpringSecurityExceptionTranslationFilter filter = new SpringSecurityExceptionTranslationFilter();
        filter.setAuthenticationEntryPoint( aep );
        if ( !accessDeniedUrl.equals( "" ) ) {
            T5AccessDeniedHandler accessDeniedHandler = new T5AccessDeniedHandler();
            accessDeniedHandler.setErrorPage( accessDeniedUrl );
            filter.setAccessDeniedHandler( accessDeniedHandler );
        }
        filter.afterPropertiesSet();
        return filter;
    }
View Full Code Here

            @Inject @Value( "${spring-security.accessDenied.url}" ) final String accessDeniedUrl ) throws Exception {

        SpringSecurityExceptionTranslationFilter filter = new SpringSecurityExceptionTranslationFilter();
        filter.setAuthenticationEntryPoint( aep );
        if ( !accessDeniedUrl.equals( "" ) ) {
            T5AccessDeniedHandler accessDeniedHandler = new T5AccessDeniedHandler();
            accessDeniedHandler.setErrorPage( accessDeniedUrl );
            filter.setAccessDeniedHandler( accessDeniedHandler );
        }
        filter.afterPropertiesSet();
        return filter;
    }
View Full Code Here

            @Inject RequestGlobals globals,
            @InjectService( "RememberMeLogoutHandler" ) final LogoutHandler rememberMeLogoutHandler ) {

        cfg.add( "securityContextLogoutHandler", new SecurityContextLogoutHandler() );
        cfg.add( "rememberMeLogoutHandler", rememberMeLogoutHandler );
        cfg.add( "tapestryLogoutHandler", new TapestryLogoutHandler( globals ) ,new String[0]);
    }
View Full Code Here

            @Inject RequestGlobals globals,
            @InjectService( "RememberMeLogoutHandler" ) final LogoutHandler rememberMeLogoutHandler ) {

        cfg.add( "securityContextLogoutHandler", new SecurityContextLogoutHandler() );
        cfg.add( "rememberMeLogoutHandler", rememberMeLogoutHandler );
        cfg.add( "tapestryLogoutHandler", new TapestryLogoutHandler( globals ) ,new String[0]);
    }
View Full Code Here

TOP

Related Classes of nu.localhost.tapestry5.springsecurity.services.SecurityModule

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.