/** * Constructor given confDir where 'kdc.conf' and 'backend.conf' should be * available. * kdc.conf, that contains kdc server related items. * backend.conf, that contains identity backend related items. * * @param confDir The conf dir * @throws KrbException e */ public KdcServer(File confDir) throws KrbException { KdcConfig tmpKdcConfig = KdcUtil.getKdcConfig(confDir); if (tmpKdcConfig == null) { tmpKdcConfig = new KdcConfig(); } this.kdcConfig = tmpKdcConfig; BackendConfig tmpBackendConfig = KdcUtil.getBackendConfig(confDir); if (tmpBackendConfig == null) { tmpBackendConfig = new BackendConfig(); } tmpBackendConfig.setConfDir(confDir); this.backendConfig = tmpBackendConfig; startupOptions = new KOptions(); kdcSetting = new KdcSetting(startupOptions, kdcConfig, backendConfig); }
/** * Constructor given confDir where 'kdc.conf' and 'backend.conf' should be * available. * kdc.conf, that contains kdc server related items. * backend.conf, that contains identity backend related items. * * @param confDir The conf dir * @throws KrbException e */ public KdcServer(File confDir) throws KrbException { KdcConfig tmpKdcConfig = KdcUtil.getKdcConfig(confDir); if (tmpKdcConfig == null) { tmpKdcConfig = new KdcConfig(); } this.kdcConfig = tmpKdcConfig; BackendConfig tmpBackendConfig = KdcUtil.getBackendConfig(confDir); if (tmpBackendConfig == null) { tmpBackendConfig = new BackendConfig(); } tmpBackendConfig.setConfDir(confDir); this.backendConfig = tmpBackendConfig; startupOptions = new KOptions(); kdcSetting = new KdcSetting(startupOptions, kdcConfig, backendConfig); }
tmpBackendConfig = new BackendConfig(); tmpBackendConfig.setConfDir(confDir); this.backendConfig = tmpBackendConfig;
tmpBackendConfig = new BackendConfig(); tmpBackendConfig.setConfDir(confDir); this.backendConfig = tmpBackendConfig;