Skip to content

Commit

Permalink
Merge pull request #307 from pg-techno123/develop
Browse files Browse the repository at this point in the history
MOSIP-28970
  • Loading branch information
gsasikumar authored Nov 16, 2023
2 parents d6d0381 + 4bbccd2 commit f6e6a18
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.security.cert.X509Certificate;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;

Expand Down Expand Up @@ -817,9 +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 void evictKeys(String keystoreFilePath) {
privateKeyMap.entrySet().removeIf( e -> e.getKey().startsWith(keystoreFilePath));
certificateMap.entrySet().removeIf( e -> e.getKey().startsWith(keystoreFilePath));
privateKeyMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath));
certificateMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath));
}
}

0 comments on commit f6e6a18

Please sign in to comment.