Codota Logo
HttpSecurityBuilder.addFilterBefore
Code IndexAdd Codota to your IDE (free)

How to use
addFilterBefore
method
in
org.springframework.security.config.annotation.web.HttpSecurityBuilder

Best Java code snippets using org.springframework.security.config.annotation.web.HttpSecurityBuilder.addFilterBefore (Showing top 1 results out of 315)

  • Common ways to obtain HttpSecurityBuilder
private void myMethod () {
HttpSecurityBuilder h =
  • Codota IconHttpSecurity http;http.csrf().disable()
  • Codota IconHttpSecurity httpSecurity;httpSecurity.httpBasic().disable()
  • Codota IconHttpSecurity httpSecurity;httpSecurity.authorizeRequests().anyRequest().authenticated().and().csrf().disable()
  • Smart code suggestions by Codota
}
origin: codeabovelab/haven-platform

@Override
public void configure(H http) throws Exception {
  AuthenticationTokenFilter af = getAuthenticationFilter();
  if(authenticationDetailsSource != null) {
    af.setAuthenticationDetailsSource(authenticationDetailsSource);
  }
  af.setAuthenticationManager(http.getSharedObject(AuthenticationManager.class));
  af.setAuthenticationSuccessHandler(new AuthenticationStubSuccessHandler());
  SessionAuthenticationStrategy sessionAuthenticationStrategy = http.getSharedObject(SessionAuthenticationStrategy.class);
  if(sessionAuthenticationStrategy != null) {
    af.setSessionAuthenticationStrategy(sessionAuthenticationStrategy);
  }
  AuthenticationTokenFilter filter = postProcess(af);
  filter.setContinueChainAfterSuccessfulAuthentication(true);
  http.addFilterBefore(filter, BasicAuthenticationFilter.class);
}
org.springframework.security.config.annotation.webHttpSecurityBuilderaddFilterBefore

Javadoc

Allows adding a Filter before one of the known Filter classes. The known Filter instances are either a Filter listed in #addFilter(Filter) or a Filter that has already been added using #addFilterAfter(Filter,Class) or #addFilterBefore(Filter,Class).

Popular methods of HttpSecurityBuilder

  • getSharedObject
    Gets a shared Object. Note that object heirarchies are not considered.
  • addFilter
    Adds a Filter that must be an instance of or extend one of the Filters provided within the Security
  • authenticationProvider
    Allows adding an additional AuthenticationProvider to be used
  • getConfigurer
    Gets the SecurityConfigurer by its class name ornull if not found. Note that object hierarchies are
  • removeConfigurer
    Removes the SecurityConfigurer by its class name ornull if not found. Note that object hierarchies a
  • setSharedObject
    Sets an object that is shared by multiple SecurityConfigurer.
  • getAuthenticationManager

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JList (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now