Package nu.localhost.tapestry5.springsecurity.util

Examples of nu.localhost.tapestry5.springsecurity.util.DefaultThrowableAnalyzer


    @Marker( SpringSecurityServices.class )
    public static HttpServletRequestFilter buildAuthenticationProcessingFilter(
            final UsernamePasswordAuthenticationFilter filter ) throws Exception {

        return new HttpServletRequestFilterWrapper( filter );
    }
View Full Code Here


            @SpringSecurityServices final RememberMeServices rememberMe,
            @SpringSecurityServices final AuthenticationManager authManager ) throws Exception {

        final RememberMeAuthenticationFilter filter = new RememberMeAuthenticationFilter(authManager,rememberMe);
        filter.afterPropertiesSet();
        return new HttpServletRequestFilterWrapper( filter );
    }
View Full Code Here

      try {
      scharf.afterPropertiesSet();
    } catch (ServletException e) {
      throw new TapestryException("Could not initialize SecurityContextHolderAwareRequestFilter",e);
    }
        return new HttpServletRequestFilterWrapper(scharf);
    }
View Full Code Here

        attrEditor.setAsText( anonymousAttr );
        final UserAttribute attr = (UserAttribute) attrEditor.getValue();
       
        final AnonymousAuthenticationFilter filter = new AnonymousAuthenticationFilter(anonymousKey,"anonymousUser",attr.getAuthorities());
        filter.afterPropertiesSet();
        return new HttpServletRequestFilterWrapper( filter );
    }
View Full Code Here

    public static void contributeRequestHandler(
            final OrderedConfiguration<RequestFilter> configuration,
            final RequestGlobals globals,
            @InjectService( "SpringSecurityExceptionFilter" ) final SpringSecurityExceptionTranslationFilter springSecurityExceptionFilter ) {

        configuration.add( "SpringSecurityExceptionFilter", new RequestFilterWrapper(
                globals,
                springSecurityExceptionFilter ), "after:ErrorFilter" );
    }
View Full Code Here

    public static void contributeRequestHandler(
            final OrderedConfiguration<RequestFilter> configuration,
            final RequestGlobals globals,
            @InjectService( "SpringSecurityExceptionFilter" ) final SpringSecurityExceptionTranslationFilter springSecurityExceptionFilter ) {

        configuration.add( "SpringSecurityExceptionFilter", new RequestFilterWrapper(
                globals,
                springSecurityExceptionFilter ), "after:ErrorFilter" );
    }
View Full Code Here

   
    @Marker( SpringSecurityServices.class )
    public static SaltSourceService buildSaltSource(
            @Inject @Value( "${spring-security.password.salt}" ) final String salt ) throws Exception {

        SaltSourceImpl saltSource = new SaltSourceImpl();
        saltSource.setSystemWideSalt( salt );
        saltSource.afterPropertiesSet();
        return saltSource;
    }
View Full Code Here

   
    @Marker( SpringSecurityServices.class )
    public static SaltSourceService buildSaltSource(
            @Inject @Value( "${spring-security.password.salt}" ) final String salt ) throws Exception {

        SaltSourceImpl saltSource = new SaltSourceImpl();
        saltSource.setSystemWideSalt( salt );
        saltSource.afterPropertiesSet();
        return saltSource;
    }
View Full Code Here

    public static SpringSecurityExceptionTranslationFilter buildSpringSecurityExceptionFilter(
            final AuthenticationEntryPoint aep,
            @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

    public static SpringSecurityExceptionTranslationFilter buildSpringSecurityExceptionFilter(
            final AuthenticationEntryPoint aep,
            @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

TOP

Related Classes of nu.localhost.tapestry5.springsecurity.util.DefaultThrowableAnalyzer

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.