@Override
	public void init(H http) throws Exception {
		PreAuthenticatedAuthenticationProvider authenticationProvider = new PreAuthenticatedAuthenticationProvider();
		authenticationProvider
				.setPreAuthenticatedUserDetailsService(getUserDetailsService());
		authenticationProvider = postProcess(authenticationProvider);

		// @formatter:off
		http
			.authenticationProvider(authenticationProvider)
			.setSharedObject(AuthenticationEntryPoint.class, new Http403ForbiddenEntryPoint());
		// @formatter:on
	}
@Override
	public void init(H http) throws Exception {
		PreAuthenticatedAuthenticationProvider authenticationProvider = new PreAuthenticatedAuthenticationProvider();
		authenticationProvider
				.setPreAuthenticatedUserDetailsService(getUserDetailsService());
		authenticationProvider = postProcess(authenticationProvider);

		
		http
			.authenticationProvider(authenticationProvider)
			.setSharedObject(AuthenticationEntryPoint.class, new Http403ForbiddenEntryPoint());
		
	}
@ Override public void init ( H http ) throws Exception { PreAuthenticatedAuthenticationProvider authenticationProvider = new PreAuthenticatedAuthenticationProvider ( ) ; authenticationProvider . setPreAuthenticatedUserDetailsService ( getUserDetailsService ( ) ) ; authenticationProvider = postProcess ( authenticationProvider ) ; // @formatter:off http . authenticationProvider ( authenticationProvider ) . setSharedObject ( AuthenticationEntryPoint . class , new Http403ForbiddenEntryPoint ( ) ) ; // @formatter:on }
Populates a {@link PreAuthenticatedAuthenticationProvider} into
{@link HttpSecurity#authenticationProvider(org.springframework.security.authentication.AuthenticationProvider)}
and a {@link Http403ForbiddenEntryPoint} into
{@link HttpSecurityBuilder#setSharedObject(Class, Object)}

@see org.springframework.security.config.annotation.SecurityConfigurerAdapter#init(org.springframework.security.config.annotation.SecurityBuilder)
Populates a { @link PreAuthenticatedAuthenticationProvider } into { @link HttpSecurity#authenticationProvider ( org . springframework . security . authentication . AuthenticationProvider ) } and a { @link Http403ForbiddenEntryPoint } into { @link HttpSecurityBuilder#setSharedObject ( Class Object ) }