Package org.springframework.security.web.servlet.support.csrf

Examples of org.springframework.security.web.servlet.support.csrf.CsrfRequestDataValueProcessor


        argumentResolvers.add(new org.springframework.security.web.bind.support.AuthenticationPrincipalArgumentResolver());
    }

    @Bean
    public RequestDataValueProcessor requestDataValueProcessor() {
        return new CsrfRequestDataValueProcessor();
    }
View Full Code Here


    HdivRequestDataValueProcessor dataValueProcessor = new ThymeleafHdivRequestDataValueProcessor();
    dataValueProcessor.setFormUrlProcessor(this.formUrlProcessor);
    dataValueProcessor.setLinkUrlProcessor(this.linkUrlProcessor);

    if (springSecurityPresent) {
      dataValueProcessor.setInnerRequestDataValueProcessor(new CsrfRequestDataValueProcessor());
    }
    return dataValueProcessor;
  }
View Full Code Here

    HdivRequestDataValueProcessor dataValueProcessor = new HdivRequestDataValueProcessor();
    dataValueProcessor.setFormUrlProcessor(this.formUrlProcessor);
    dataValueProcessor.setLinkUrlProcessor(this.linkUrlProcessor);

    if (springSecurityPresent) {
      dataValueProcessor.setInnerRequestDataValueProcessor(new CsrfRequestDataValueProcessor());
    }
    return dataValueProcessor;
  }
View Full Code Here

    if (springSecurityPresent && springVersionGrEqThan4) {
      // Spring Security is present and Spring >= 4.0.0
      // Enable Spring security integration

      bean.getPropertyValues().addPropertyValue("innerRequestDataValueProcessor",
          new CsrfRequestDataValueProcessor());
    }
    parserContext.getRegistry().registerBeanDefinition(REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME, bean);
    return new RuntimeBeanReference(REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME);
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.web.servlet.support.csrf.CsrfRequestDataValueProcessor

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.