Search in sources :

Example 1 with JBossCachedAuthenticationManager

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();
    }
}
Also used : JBossCachedAuthenticationManager(org.jboss.security.authentication.JBossCachedAuthenticationManager) AuthenticationManager(org.jboss.security.AuthenticationManager) JBossCachedAuthenticationManager(org.jboss.security.authentication.JBossCachedAuthenticationManager)

Aggregations

AuthenticationManager (org.jboss.security.AuthenticationManager)1 JBossCachedAuthenticationManager (org.jboss.security.authentication.JBossCachedAuthenticationManager)1