security/subsystem/src/main/java/org/jboss/as/security/plugins/JNDIBasedSecurityManagement.java
public SecurityDomainContext createSecurityDomainContext(String securityDomain, AuthenticationCacheFactory cacheFactory) throws Exception {
        return createSecurityDomainContext(securityDomain, cacheFactory, null);
    }
public SecurityDomainContext createSecurityDomainContext(String securityDomain, AuthenticationCacheFactory cacheFactory) throws Exception {
        return createSecurityDomainContext(securityDomain, cacheFactory, null);
    }
Creates a {@code SecurityDomainContext}

@param securityDomain name of the security domain
@param cacheFactory creates a cache implementation
@return an instance of {@code SecurityDomainContext}
@throws Exception if an error occurs during creation