/** * Get KDC port, as both TCP and UDP ports * * @return The kdc host */ public int getAdminPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_PORT, true, LIBDEFAULT); if (kdcPort != null) { return kdcPort.intValue(); } return -1; }
/** * Get KDC port, as both TCP and UDP ports * * @return The kdc host */ public int getAdminPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_PORT, true, LIBDEFAULT); if (kdcPort != null) { return kdcPort.intValue(); } return -1; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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 UDP port * * @return The kdc udp port */ public int getAdminUdpPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_UDP_PORT, true, LIBDEFAULT); if (kdcPort != null && kdcPort > 0) { return kdcPort.intValue(); } return getAdminPort(); }
/** * Get KDC TCP port * * @return The kdc tcp port */ public int getAdminTcpPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_TCP_PORT, true, LIBDEFAULT); if (kdcPort != null && kdcPort > 0) { return kdcPort.intValue(); } return getAdminPort(); }
/** * Get KDC TCP port * * @return The kdc tcp port */ public int getAdminTcpPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_TCP_PORT, true, LIBDEFAULT); if (kdcPort != null && kdcPort > 0) { return kdcPort.intValue(); } return getAdminPort(); }
/** * Get KDC UDP port * * @return The kdc udp port */ public int getAdminUdpPort() { Integer kdcPort = getInt(AdminConfigKey.ADMIN_UDP_PORT, true, LIBDEFAULT); if (kdcPort != null && kdcPort > 0) { return kdcPort.intValue(); } return getAdminPort(); }