public synchronized void opportunisticallyRefreshUserData ( final String username , final String password ) { if ( shouldOpportunisticallyRefreshUserData ( ) ) { this . lastOpportunisticUserDataRefresh = System . currentTimeMillis ( ) ; Thread thread = new Thread ( ( ) -> refreshAllUserData ( ldap . parseUser ( username ) , password , true ) ) ; thread . setDaemon ( true ) ; thread . setName ( "UserManager_OpportunisticRefresh" ) ; thread . start ( ) ; } }
Temporarily borrow a user s credentials to run an opportunistic user data refresh