use of org.jboss.security.authentication.JBossCachedAuthenticationManager in project wildfly by wildfly.
the class UndertowDeploymentInfoService method stop.
@Override
public synchronized void stop(final StopContext stopContext) {
IoUtils.safeClose(this.deploymentInfo.getResourceManager());
if (securityDomain != null && securityFunction.getOptionalValue() == null) {
AuthenticationManager authManager = securityDomainContextValue.getValue().getAuthenticationManager();
if (authManager != null && authManager instanceof JBossCachedAuthenticationManager) {
((JBossCachedAuthenticationManager) authManager).releaseModuleEntries(module.getClassLoader());
}
}
this.deploymentInfo.setConfidentialPortManager(null);
this.deploymentInfo = null;
if (registration != null) {
registration.cancel();
}
}
Aggregations