/** * Get backend configuration * @param confDir configuration directory * @return backend configuration * @throws org.apache.kerby.kerberos.kerb.KrbException e. */ public static BackendConfig getBackendConfig(File confDir) throws KrbException { File backendConfigFile = new File(confDir, "backend.conf"); if (backendConfigFile.exists()) { BackendConfig backendConfig = new BackendConfig(); try { backendConfig.addIniConfig(backendConfigFile); } catch (IOException e) { throw new KrbException("Can not load the backend configuration file " + backendConfigFile.getAbsolutePath()); } return backendConfig; } return null; }
/** * Get backend configuration * @param confDir configuration directory * @return backend configuration * @throws org.apache.kerby.kerberos.kerb.KrbException e. */ public static BackendConfig getBackendConfig(File confDir) throws KrbException { File backendConfigFile = new File(confDir, "backend.conf"); if (backendConfigFile.exists()) { BackendConfig backendConfig = new BackendConfig(); try { backendConfig.addIniConfig(backendConfigFile); } catch (IOException e) { throw new KrbException("Can not load the backend configuration file " + backendConfigFile.getAbsolutePath()); } return backendConfig; } return null; }
/** * Get backend configuration * @param confDir configuration directory * @return backend configuration * @throws KrbException e. */ public static BackendConfig getBackendConfig(File confDir) throws KrbException { File backendConfigFile = new File(confDir, "backend.conf"); if (backendConfigFile.exists()) { BackendConfig backendConfig = new BackendConfig(); try { backendConfig.addIniConfig(backendConfigFile); } catch (IOException e) { throw new KrbException("Can not load the backend configuration file " + backendConfigFile.getAbsolutePath()); } return backendConfig; } return null; }
/** * Get backend configuration * @param confDir configuration directory * @return backend configuration * @throws KrbException e. */ public static BackendConfig getBackendConfig(File confDir) throws KrbException { File backendConfigFile = new File(confDir, "backend.conf"); if (backendConfigFile.exists()) { BackendConfig backendConfig = new BackendConfig(); try { backendConfig.addIniConfig(backendConfigFile); } catch (IOException e) { throw new KrbException("Can not load the backend configuration file " + backendConfigFile.getAbsolutePath()); } return backendConfig; } return null; }