org.springframework.security.web.firewall.HttpFirewall Java Examples

The following examples show how to use org.springframework.security.web.firewall.HttpFirewall. 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: ApplicationConfiguration.java    From cerberus with Apache License 2.0 5 votes vote down vote up
/**
 * We need to accept double slashes to maintain backwards compatibility with the Highlander API
 * behavior.
 */
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
  StrictHttpFirewall firewall = new StrictHttpFirewall();
  firewall.setAllowUrlEncodedDoubleSlash(true);
  return firewall;
}
 
Example #6
Source File: MySecurityConfig.java    From zfile with MIT License 4 votes vote down vote up
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedPercent(true);
    return firewall;
}
 
Example #7
Source File: SecurityConfig.java    From Spring with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall httpFirewall() {
	return new DefaultHttpFirewall();
}
 
Example #8
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 #9
Source File: ApolloMetaServiceConfig.java    From apollo with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    return new DefaultHttpFirewall();
}
 
Example #10
Source File: SecurityConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall defaultFireWall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example #11
Source File: SecurityConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall defaultFireWall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example #12
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 #13
Source File: SecurityConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall defaultFireWall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example #14
Source File: SecurityConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
public HttpFirewall defaultFireWall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
 
Example #15
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;
}
 
Example #16
Source File: HttpConfig.java    From cosmo with Apache License 2.0 2 votes vote down vote up
/**
    * Provide a less restrictive firewall by default and allow applications to overwrite it.
    * 
    * @return <code>HttpFirewall</code> instance.
    */
   @Bean
   public HttpFirewall httpFirewall() {
return new DefaultHttpFirewall();
   }