Tabnine Logo
HttpSecurityBuilder.getAuthenticationManager
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now