Package org.springframework.security.web.access

Examples of org.springframework.security.web.access.AccessDeniedHandler


    public void configure(H http) throws Exception {
        CsrfFilter filter = new CsrfFilter(csrfTokenRepository);
        if(requireCsrfProtectionMatcher != null) {
            filter.setRequireCsrfProtectionMatcher(requireCsrfProtectionMatcher);
        }
        AccessDeniedHandler accessDeniedHandler = createAccessDeniedHandler(http);
        if(accessDeniedHandler != null) {
            filter.setAccessDeniedHandler(accessDeniedHandler);
        }
        LogoutConfigurer<H> logoutConfigurer = http.getConfigurer(LogoutConfigurer.class);
        if(logoutConfigurer != null) {
View Full Code Here


     * @return the {@link AccessDeniedHandler}
     */
    @SuppressWarnings("unchecked")
    private AccessDeniedHandler getDefaultAccessDeniedHandler(H http) {
        ExceptionHandlingConfigurer<H> exceptionConfig = http.getConfigurer(ExceptionHandlingConfigurer.class);
        AccessDeniedHandler handler = null;
        if(exceptionConfig != null) {
            handler = exceptionConfig.getAccessDeniedHandler();
        }
        if(handler == null) {
            handler = new AccessDeniedHandlerImpl();
View Full Code Here

     * @param http the {@link HttpSecurityBuilder}
     * @return the {@link AccessDeniedHandler}
     */
    private AccessDeniedHandler createAccessDeniedHandler(H http) {
        InvalidSessionStrategy invalidSessionStrategy = getInvalidSessionStrategy(http);
        AccessDeniedHandler defaultAccessDeniedHandler = getDefaultAccessDeniedHandler(http);
        if(invalidSessionStrategy == null) {
            return defaultAccessDeniedHandler;
        }

        InvalidSessionAccessDeniedHandler invalidSessionDeniedHandler = new InvalidSessionAccessDeniedHandler(invalidSessionStrategy);
View Full Code Here

    private void registerExceptionTranslationFilter(Element element, ParserContext pc) {
        //zkAccessDeniedHandler
        final BeanDefinitionBuilder builder
          = BeanDefinitionBuilder.rootBeanDefinition(ZkExceptionTranslationFilter.class);
        AccessDeniedHandler accessDeniedHandler = new ZkAccessDeniedHandler();
        builder.addPropertyValue("accessDeniedHandler", accessDeniedHandler);
       
        //zkAuthenticationEntryPoint
        ZkAuthenticationEntryPoint entryPoint = new ZkAuthenticationEntryPoint();
        String closeDelay = element.getAttribute(ATT_LOGIN_TEMPLATE_CLOSE_DELAY);
View Full Code Here

TOP

Related Classes of org.springframework.security.web.access.AccessDeniedHandler

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.