- Initiate a kdc server with prepared confDir.
KdcServer server = new KdcServer(confDir);
- 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);
- Start kdc server.
stop();