Skip to content

Commit

Permalink
MOSIP-28970
Browse files Browse the repository at this point in the history
Signed-off-by: Pankaj Godiyal <[email protected]>
  • Loading branch information
pg-techno123 committed Nov 16, 2023
1 parent 29711da commit 4bbccd2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,11 @@ private void loadKeys(String keyStoreFileName, String alias, String keystorePass
/**
* To be invoked in afterSuite
* @param keystoreFilePath
* This method is not thread safe
*/


public static synchronized void evictKeys(String keystoreFilePath) {
public static void evictKeys(String keystoreFilePath) {
privateKeyMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath));
certificateMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath));
certificateMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath));
}
}

0 comments on commit 4bbccd2

Please sign in to comment.