/** * 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(); }
/** * 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(); }
adminClient.setAllowTcp(true); adminClient.setAllowUdp(false); adminClient.setAdminTcpPort(adminConfig.getAdminPort());
adminClient.setAllowTcp(true); adminClient.setAllowUdp(false); adminClient.setAdminTcpPort(adminConfig.getAdminPort());