public class KdcServer extends Object
| Constructor and Description |
|---|
KdcServer()
Default constructor.
|
KdcServer(File confDir)
Constructor given confDir where 'kdc.conf' and 'backend.conf' should be
available.
|
KdcServer(KdcConfig kdcConfig,
BackendConfig backendConfig)
Constructor passing both kdcConfig and backendConfig.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableDebug()
Allow to debug so have more logs.
|
BackendConfig |
getBackendConfig()
Get backend config.
|
IdentityBackend |
getIdentityService()
Get identity service.
|
KdcConfig |
getKdcConfig()
Get the KDC config.
|
int |
getKdcPort()
Get the KDC port, if it has been set.
|
KdcSetting |
getKdcSetting()
Get KDC setting from startup options and configs.
|
int |
getKdcTcpPort()
Get the KDC Tcp port, if it has been set.
|
int |
getKdcUdpPort()
Get the KDC udp port, if it has been set.
|
void |
init()
Initialize.
|
void |
setAllowTcp(boolean allowTcp)
Set to allow TCP or not.
|
void |
setAllowUdp(boolean allowUdp)
Set to allow UDP or not.
|
void |
setInnerKdcImpl(InternalKdcServer innerKdcImpl)
Allow to hook customized kdc implementation.
|
void |
setKdcHost(String kdcHost)
Set KDC host.
|
void |
setKdcPort(int kdcPort)
Set KDC port.
|
void |
setKdcRealm(String realm)
Set KDC realm for ticket request
|
void |
setKdcTcpPort(int kdcTcpPort)
Set KDC tcp port.
|
void |
setKdcUdpPort(int kdcUdpPort)
Set KDC udp port.
|
void |
setWorkDir(File workDir)
Set runtime folder.
|
void |
start()
Start the KDC server.
|
void |
stop()
Stop the KDC server.
|
public KdcServer(KdcConfig kdcConfig, BackendConfig backendConfig) throws KrbException
kdcConfig - The kdc configbackendConfig - The backend configKrbException - epublic KdcServer(File confDir) throws KrbException
confDir - The conf dirKrbException - epublic KdcServer()
public void setKdcRealm(String realm)
realm - The kdc realmpublic void setKdcHost(String kdcHost)
kdcHost - The kdc hostpublic void setKdcPort(int kdcPort)
kdcPort - The kdc portpublic int getKdcPort()
public void setKdcTcpPort(int kdcTcpPort)
kdcTcpPort - The kdc tcp portpublic int getKdcTcpPort()
public void setAllowUdp(boolean allowUdp)
allowUdp - true if allow udppublic void setAllowTcp(boolean allowTcp)
allowTcp - true if allow tcppublic void setKdcUdpPort(int kdcUdpPort)
kdcUdpPort - The kdc udp portpublic int getKdcUdpPort()
public void setWorkDir(File workDir)
workDir - The work dirpublic void enableDebug()
public void setInnerKdcImpl(InternalKdcServer innerKdcImpl)
innerKdcImpl - The inner kdc implementationpublic KdcSetting getKdcSetting()
public KdcConfig getKdcConfig()
public BackendConfig getBackendConfig()
public IdentityBackend getIdentityService()
public void init()
throws KrbException
KrbException - e.public void start()
throws KrbException
KrbException - e.public void stop()
throws KrbException
KrbException - e.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.