Package org.springframework.security.authentication

Examples of org.springframework.security.authentication.DefaultAuthenticationEventPublisher


    protected final HttpSecurity getHttp() throws Exception {
        if(http != null) {
            return http;
        }

        DefaultAuthenticationEventPublisher eventPublisher = objectPostProcessor.postProcess(new DefaultAuthenticationEventPublisher());
        localConfigureAuthenticationBldr.authenticationEventPublisher(eventPublisher);

        AuthenticationManager authenticationManager = authenticationManager();
        authenticationBuilder.parentAuthenticationManager(authenticationManager);
        http = new HttpSecurity(objectPostProcessor,authenticationBuilder, localConfigureAuthenticationBldr.getSharedObjects());
View Full Code Here


     *
     * @return
     */
    protected AuthenticationManager authenticationManager() throws Exception {
        if(authenticationManager == null) {
            DefaultAuthenticationEventPublisher eventPublisher = objectPostProcessor.postProcess(new DefaultAuthenticationEventPublisher());
            auth = new AuthenticationManagerBuilder(objectPostProcessor);
            auth.authenticationEventPublisher(eventPublisher);
            configure(auth);
            if(disableAuthenticationRegistry) {
                authenticationManager = getAuthenticationConfiguration().getAuthenticationManager();
View Full Code Here

  @Bean
  @ConditionalOnMissingBean
  public AuthenticationEventPublisher authenticationEventPublisher(
      ApplicationEventPublisher publisher) {
    return new DefaultAuthenticationEventPublisher(publisher);
  }
View Full Code Here

        }

        authenticationBuilder.objectPostProcessor(objectPostProcessor);
        parentAuthenticationBuilder.objectPostProcessor(objectPostProcessor);

        DefaultAuthenticationEventPublisher eventPublisher = objectPostProcessor.postProcess(new DefaultAuthenticationEventPublisher());
        parentAuthenticationBuilder.authenticationEventPublisher(eventPublisher);

        AuthenticationManager authenticationManager = authenticationManager();
        authenticationBuilder.parentAuthenticationManager(authenticationManager);
        http = new HttpSecurity(objectPostProcessor,authenticationBuilder, parentAuthenticationBuilder.getSharedObjects());
View Full Code Here

     *
     * @return
     */
    protected AuthenticationManager authenticationManager() throws Exception {
        if(authenticationManager == null) {
            DefaultAuthenticationEventPublisher eventPublisher = objectPostProcessor.postProcess(new DefaultAuthenticationEventPublisher());
            auth.authenticationEventPublisher(eventPublisher);
            auth.objectPostProcessor(objectPostProcessor);
            registerAuthentication(auth);
            if(!disableAuthenticationRegistry) {
                authenticationManager = auth.build();
View Full Code Here

TOP

Related Classes of org.springframework.security.authentication.DefaultAuthenticationEventPublisher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.