/** * @throws KrbException e */ @Override public synchronized void stop() throws KrbException { super.stop(); try { krb5Conf.deleteKrb5conf(); } catch (IOException e) { LOG.info("Fail to delete krb5 conf. " + e); } } }
public void initKrb5conf() throws IOException { File confFile = generateConfFile(); System.setProperty(KRB5_CONF, confFile.getAbsolutePath()); }
/** * {@inheritDoc} */ @Override public synchronized void init() throws KrbException { super.init(); kadmin = new LocalKadminImpl(getKdcSetting(), getIdentityService()); kadmin.createBuiltinPrincipals(); try { krb5Conf = new Krb5Conf(this); krb5Conf.initKrb5conf(); } catch (IOException e) { throw new KrbException("Failed to make krb5.conf", e); } }
/** * {@inheritDoc} */ @Override public synchronized void init() throws KrbException { super.init(); kadmin = new LocalKadminImpl(getKdcSetting(), getIdentityService()); kadmin.createBuiltinPrincipals(); try { krb5Conf = new Krb5Conf(this); krb5Conf.initKrb5conf(); } catch (IOException e) { throw new KrbException("Failed to make krb5.conf", e); } }
public void initKrb5conf() throws IOException { File confFile = generateConfFile(); System.setProperty(KRB5_CONF, confFile.getAbsolutePath()); }
/** * @throws KrbException e */ @Override public synchronized void stop() throws KrbException { super.stop(); try { krb5Conf.deleteKrb5conf(); } catch (IOException e) { LOG.info("Fail to delete krb5 conf. " + e); } } }