protected void broadcastAuthentication ( Authentication authentication ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "BROADCAST authentication: token=" + authentication ) ; // Save this for any new beans that we post-process currentAuthentication = authentication ; final Iterator iter = getBeansToUpdate ( AuthenticationAware . class ) . iterator ( ) ; while ( iter . hasNext ( ) ) { ( ( AuthenticationAware ) iter . next ( ) ) . setAuthenticationToken ( authentication ) ; } }
Broadcast an authentication event to all the AuthenticationAware beans .