-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When starting this up using a ServletContextListener and terminating the application it says that there are ThreadLocals that are still remaining.
Calling Security.removeProvider doesn't resolve the threadlocal issues
public class InstallCorretto implements ServletContextListener {
/**
* Servlet context attribute key.
*/
public static final String CONTEXT = "useCorretto";
@Override
public void contextDestroyed(@NotNull final ServletContextEvent sce) {
Security.removeProvider(AmazonCorrettoCryptoProvider.PROVIDER_NAME);
sce.getServletContext().removeAttribute(CONTEXT);
}
@Override
public void contextInitialized(@NotNull final ServletContextEvent sce) {
AmazonCorrettoCryptoProvider.install();
sce.getServletContext().setAttribute(CONTEXT, true);
}
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request