Search in sources :

Example 1 with AuditNotificationReceiver

use of org.wildfly.extension.undertow.security.AuditNotificationReceiver in project wildfly by wildfly.

the class UndertowDeploymentInfoService method handleIdentityManager.

private void handleIdentityManager(final DeploymentInfo deploymentInfo) {
    if (securityDomain != null) {
        SecurityDomainContext sdc = securityDomainContextValue.getValue();
        deploymentInfo.setIdentityManager(new JAASIdentityManagerImpl(sdc));
        AuditManager auditManager = sdc.getAuditManager();
        if (auditManager != null && !mergedMetaData.isDisableAudit()) {
            deploymentInfo.addNotificationReceiver(new AuditNotificationReceiver(auditManager));
        }
    }
}
Also used : JAASIdentityManagerImpl(org.wildfly.extension.undertow.security.JAASIdentityManagerImpl) AuditNotificationReceiver(org.wildfly.extension.undertow.security.AuditNotificationReceiver) SecurityDomainContext(org.jboss.as.security.plugins.SecurityDomainContext) AuditManager(org.jboss.security.audit.AuditManager)

Aggregations

SecurityDomainContext (org.jboss.as.security.plugins.SecurityDomainContext)1 AuditManager (org.jboss.security.audit.AuditManager)1 AuditNotificationReceiver (org.wildfly.extension.undertow.security.AuditNotificationReceiver)1 JAASIdentityManagerImpl (org.wildfly.extension.undertow.security.JAASIdentityManagerImpl)1