Java Code Examples for org.springframework.security.web.firewall.DefaultHttpFirewall#setAllowUrlEncodedSlash()

The following examples show how to use org.springframework.security.web.firewall.DefaultHttpFirewall#setAllowUrlEncodedSlash() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringSecurityConfig.java    From pacbot with Apache License 2.0 5 votes vote down vote up
/**
 * Allow url encoded slash http firewall.
 *
 * @return the http firewall
 */
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example 2
Source File: SpringSecurityConfig.java    From pacbot with Apache License 2.0 5 votes vote down vote up
/**
 * Allow url encoded slash http firewall.
 *
 * @return the http firewall
 */
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example 3
Source File: SpringSecurityConfig.java    From pacbot with Apache License 2.0 5 votes vote down vote up
/**
 * Allow url encoded slash http firewall.
 *
 * @return the http firewall
 */
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example 4
Source File: SpringSecurityConfig.java    From pacbot with Apache License 2.0 5 votes vote down vote up
/**
 * Allow url encoded slash http firewall.
 *
 * @return the http firewall
 */
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example 5
Source File: SecurityConfig.java    From para with Apache License 2.0 5 votes vote down vote up
/**
 * Configures the unsecured public resources.
 *
 * @param web web sec object
 * @throws Exception ex
 */
@Override
public void configure(WebSecurity web) throws Exception {
	web.ignoring().requestMatchers(IgnoredRequestMatcher.INSTANCE);
	DefaultHttpFirewall firewall = new DefaultHttpFirewall();
	firewall.setAllowUrlEncodedSlash(true);
	web.httpFirewall(firewall);
	//web.debug(true);
}
 
Example 6
Source File: SecurityConfiguration.java    From multiapps-controller with Apache License 2.0 4 votes vote down vote up
@Bean("customHttpFirewall")
public HttpFirewall customHttpFirewall() {
    DefaultHttpFirewall defaultHttpFirewall = new DefaultHttpFirewall();
    defaultHttpFirewall.setAllowUrlEncodedSlash(true);
    return defaultHttpFirewall;
}
 
Example 7
Source File: SecurityConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall defaultFireWall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example 8
Source File: WebSecurityContext.java    From syncope with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}