(EjbIORConfigurationDescriptor)iorconfig.next(); if(rlm != null){ desc.setRealmName(rlm);
realmName = DEFAULT_REALM; eDesc.setRealmName(realmName);
public void accept(EjbBundleDescriptor bundleDescriptor) { this.bundleDescriptor = bundleDescriptor; application = bundleDescriptor.getApplication(); super.accept(bundleDescriptor); /** set the realm name on each ejb to match the ones on this application * this is required right now to pass the stringent CSIv2 criteria * whereby the realm-name for the ejb being authenticated on * has to match the one on the application. We look at the IORConfigurator * descriptor * @todo: change the csiv2 layer so that it does not look at * IORConfiguratorDescriptor. * @see iiop/security/SecurityMechanismSelector.evaluateClientConformance. */ String rlm = application.getRealm(); if (rlm != null) { for(EjbDescriptor ejb : bundleDescriptor.getEjbs()) { for (EjbIORConfigurationDescriptor desc : ejb.getIORConfigurationDescriptors()) { desc.setRealmName(rlm); } } } }