2.3 - KdcServer

Kerberos Server API.

Initiate kdc server

  • Initiate a kdc server with prepared confDir.
KdcServer server = new KdcServer(confDir);

Start and set kdc server

  • Start kdc server.
start();
  • Set KDC realm for ticket request
setKdcRealm(realm);
  • Set KDC host.
setKdcHost(kdcHost);
  • Set KDC tcp port.
setKdcTcpPort(kdcTcpPort);
  • Set KDC udp port. Only makes sense when allowUdp is set.
setKdcUdpPort(kdcUdpPort);
  • Set to allow TCP or not.
setAllowTcp(allowTcp);
  • Set to allow UDP or not.
setAllowUdp(allowUdp);
  • Allow to debug so have more logs.
enableDebug();
  • Allow to hook customized kdc implementation.
setInnerKdcImpl(innerKdcImpl);

Stop kdc server

  • Start kdc server.
stop();