/** * Load krb5.conf from specified conf dir. * @param confDir The conf dir * @return AdminConfig * @throws KrbException e */ public static AdminConfig getConfig(File confDir) throws KrbException { File confFile = new File(confDir, KRB5_FILE_NAME); if (!confFile.exists()) { throw new KrbException(KRB5_FILE_NAME + " not found"); } if (confFile != null && confFile.exists()) { AdminConfig adminConfig = new AdminConfig(); try { adminConfig.addKrb5Config(confFile); return adminConfig; } catch (IOException e) { throw new KrbException("Failed to load krb config " + confFile.getAbsolutePath()); } } return null; }
/** * Load krb5.conf from specified conf dir. * @param confDir The conf dir * @return AdminConfig * @throws KrbException e */ public static AdminConfig getConfig(File confDir) throws KrbException { File confFile = new File(confDir, KRB5_FILE_NAME); if (!confFile.exists()) { throw new KrbException(KRB5_FILE_NAME + " not found"); } if (confFile != null && confFile.exists()) { AdminConfig adminConfig = new AdminConfig(); try { adminConfig.addKrb5Config(confFile); return adminConfig; } catch (IOException e) { throw new KrbException("Failed to load krb config " + confFile.getAbsolutePath()); } } return null; }
if (confFile != null && confFile.exists()) { try { adminConfig.addKrb5Config(confFile); } catch (IOException e) { throw new KrbException("Failed to load krb config "
if (confFile != null && confFile.exists()) { try { adminConfig.addKrb5Config(confFile); } catch (IOException e) { throw new KrbException("Failed to load krb config "
adminConfig.addKrb5Config(confFile);
adminConfig.addKrb5Config(confFile);