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

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

Best Java code snippets using org.springframework.security.config.annotation.web.HttpSecurityBuilder.getAuthenticationManager (Showing top 6 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: org.springframework.security/spring-security-javaconfig

@Override
public void configure(H http) throws Exception {
  X509AuthenticationFilter filter = getFilter(http.getAuthenticationManager());
  http.addFilter(filter);
}
origin: org.springframework.security/spring-security-javaconfig

@Override
public void configure(H http) throws Exception {
  J2eePreAuthenticatedProcessingFilter filter = getFilter(http
      .getAuthenticationManager());
  http.addFilter(filter);
}
origin: org.springframework.security/spring-security-javaconfig

@Override
public void configure(H http) throws Exception {
  RememberMeAuthenticationFilter rememberMeFilter = new RememberMeAuthenticationFilter(
      http.getAuthenticationManager(), rememberMeServices);
  if (authenticationSuccessHandler != null) {
    rememberMeFilter
        .setAuthenticationSuccessHandler(authenticationSuccessHandler);
  }
  rememberMeFilter = postProcess(rememberMeFilter);
  http.addFilter(rememberMeFilter);
}
origin: org.springframework.security/spring-security-javaconfig

  @Override
  public void configure(B http) throws Exception {
    AuthenticationManager authenticationManager = http.getAuthenticationManager();
    BasicAuthenticationFilter basicAuthenticationFilter = new BasicAuthenticationFilter(authenticationManager, authenticationEntryPoint);
    if(authenticationDetailsSource != null) {
      basicAuthenticationFilter.setAuthenticationDetailsSource(authenticationDetailsSource);
    }
    basicAuthenticationFilter = postProcess(basicAuthenticationFilter);
    http.addFilter(basicAuthenticationFilter);
  }
}
origin: org.springframework.security/spring-security-javaconfig

@Override
public void configure(H http) throws Exception {
  FilterInvocationSecurityMetadataSource metadataSource = createMetadataSource();
  if(metadataSource == null) {
    return;
  }
  FilterSecurityInterceptor securityInterceptor = createFilterSecurityInterceptor(metadataSource, http.getAuthenticationManager());
  if(filterSecurityInterceptorOncePerRequest != null) {
    securityInterceptor.setObserveOncePerRequest(filterSecurityInterceptorOncePerRequest);
  }
  securityInterceptor = postProcess(securityInterceptor);
  http.addFilter(securityInterceptor);
  http.setSharedObject(FilterSecurityInterceptor.class, securityInterceptor);
}
origin: org.springframework.security/spring-security-javaconfig

@Override
public void configure(B http) throws Exception {
  PortMapper portMapper = http.getSharedObject(PortMapper.class);
  if(portMapper != null) {
    authenticationEntryPoint.setPortMapper(portMapper);
  }
  authFilter.setAuthenticationManager(http.getAuthenticationManager());
  authFilter.setAuthenticationSuccessHandler(successHandler);
  authFilter.setAuthenticationFailureHandler(failureHandler);
  if(authenticationDetailsSource != null) {
    authFilter.setAuthenticationDetailsSource(authenticationDetailsSource);
  }
  SessionAuthenticationStrategy sessionAuthenticationStrategy = http.getSharedObject(SessionAuthenticationStrategy.class);
  if(sessionAuthenticationStrategy != null) {
    authFilter.setSessionAuthenticationStrategy(sessionAuthenticationStrategy);
  }
  RememberMeServices rememberMeServices = http.getSharedObject(RememberMeServices.class);
  if(rememberMeServices != null) {
    authFilter.setRememberMeServices(rememberMeServices);
  }
  F filter = postProcess(authFilter);
  http.addFilter(filter);
}
org.springframework.security.config.annotation.webHttpSecurityBuildergetAuthenticationManager

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.
  • addFilterBefore
    Allows adding a Filter before one of the known Filterclasses. The known Filter instances are either

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