/** * Is to allow UDP for KDC * * @return true to allow UDP, false otherwise */ public boolean allowUdp() { return getBoolean(AdminConfigKey.ADMIN_ALLOW_UDP, true, LIBDEFAULT) || getInt(AdminConfigKey.ADMIN_UDP_PORT, true, LIBDEFAULT) != null || getInt(AdminConfigKey.ADMIN_PORT, false, LIBDEFAULT) != null; }
/** * Get KDC host name * * @return The kdc host */ public String getAdminHost() { return getString( AdminConfigKey.ADMIN_HOST, true, LIBDEFAULT); }
/** * Get krbconfig. * @return The krb config */ public AdminConfig getConfig() { return adminSetting.getAdminConfig(); } }
/** * Default constructor. * @throws KrbException e */ public AdminClient() throws KrbException { this.adminConfig = AdminUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public AdminClient(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.adminConfig = AdminUtil.getConfig(confDir); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Get KDC realm. * @return The kdc realm */ public String getAdminRealm() { String realm = getString(AdminConfigKey.ADMIN_REALM, false, LIBDEFAULT); if (realm == null) { realm = getString(AdminConfigKey.DEFAULT_REALM, false, LIBDEFAULT); if (realm == null) { realm = (String) AdminConfigKey.ADMIN_REALM.getDefaultValue(); } } return realm; }
/** * {@inheritDoc} */ @Override public void init() throws KrbException { context = new AdminContext(); context.init(krbSetting); }
public boolean enableDebug() { return getBoolean(AdminConfigKey.KRB_DEBUG, true, LIBDEFAULT); }
/** * Is to allow TCP for KDC * * @return true to allow TCP, false otherwise */ public boolean allowTcp() { return getBoolean(AdminConfigKey.ADMIN_ALLOW_TCP, true, LIBDEFAULT) || getInt(AdminConfigKey.ADMIN_TCP_PORT, true, LIBDEFAULT) != null || getInt(AdminConfigKey.ADMIN_PORT, false, LIBDEFAULT) != null; }
/** * Default constructor. * @throws KrbException e */ public AdminClient() throws KrbException { this.adminConfig = AdminUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public AdminClient(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.adminConfig = AdminUtil.getConfig(confDir); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Get KDC realm. * @return The kdc realm */ public String getAdminRealm() { String realm = getString(AdminConfigKey.ADMIN_REALM, false, LIBDEFAULT); if (realm == null) { realm = getString(AdminConfigKey.DEFAULT_REALM, false, LIBDEFAULT); if (realm == null) { realm = (String) AdminConfigKey.ADMIN_REALM.getDefaultValue(); } } return realm; }
/** * {@inheritDoc} */ @Override public void init() throws KrbException { context = new AdminContext(); context.init(krbSetting); }
public String getServerName() { return getString(AdminConfigKey.SERVER_NAME, true, LIBDEFAULT); } }
/** * Get krbconfig. * @return The krb config */ public AdminConfig getConfig() { return adminSetting.getAdminConfig(); } }
/** * Is to allow TCP for KDC * * @return true to allow TCP, false otherwise */ public boolean allowTcp() { return getBoolean(AdminConfigKey.ADMIN_ALLOW_TCP, true, LIBDEFAULT) || getInt(AdminConfigKey.ADMIN_TCP_PORT, true, LIBDEFAULT) != null || getInt(AdminConfigKey.ADMIN_PORT, false, LIBDEFAULT) != null; }
/** * Get KDC host name * * @return The kdc host */ public String getAdminHost() { return getString( AdminConfigKey.ADMIN_HOST, true, LIBDEFAULT); }
/** * Is to allow UDP for KDC * * @return true to allow UDP, false otherwise */ public boolean allowUdp() { return getBoolean(AdminConfigKey.ADMIN_ALLOW_UDP, true, LIBDEFAULT) || getInt(AdminConfigKey.ADMIN_UDP_PORT, true, LIBDEFAULT) != null || getInt(AdminConfigKey.ADMIN_PORT, false, LIBDEFAULT) != null; }
public String getServerName() { return getString(AdminConfigKey.SERVER_NAME, true, LIBDEFAULT); } }
public String getProtocol() { return getString(AdminConfigKey.PROTOCOL, true, LIBDEFAULT); }