public class AdminServer extends Object
| Constructor and Description |
|---|
AdminServer()
Default constructor.
|
AdminServer(AdminServerConfig adminServerConfig,
BackendConfig backendConfig,
KdcConfig kdcConfig)
Constructor passing adminServerConfig, kdcConfig and backendConfig.
|
AdminServer(File confDir)
Constructor given confDir where 'adminServer.conf', 'kdc.conf' and
'backend.conf' should be available.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableDebug()
Allow to debug so have more logs.
|
AdminServerConfig |
getAdminServerConfig()
Get the Admin config.
|
AdminServerSetting |
getAdminServerSetting()
Get Admin setting from startup options and configs.
|
BackendConfig |
getBackendConfig()
Get backend config.
|
IdentityBackend |
getIdentityService()
Get identity service.
|
void |
init()
Initialize.
|
void |
setAdminHost(String adminHost)
Set Admin host.
|
void |
setAdminServerPort(int adminPort)
Set Admin port.
|
void |
setAdminServerRealm(String realm)
Set Admin realm for ticket request
|
void |
setAdminTcpPort(int adminTcpPort)
Set Admin tcp port.
|
void |
setAdminUdpPort(int adminUdpPort)
Set Admin udp port.
|
void |
setAllowTcp(boolean allowTcp)
Set to allow TCP or not.
|
void |
setAllowUdp(boolean allowUdp)
Set to allow UDP or not.
|
void |
setInnerAdminServerImpl(InternalAdminServer innerAdminServerImpl)
Allow to hook customized admin implementation.
|
void |
setWorkDir(File workDir)
Set runtime folder.
|
void |
start()
Start the Admin admin.
|
void |
stop()
Stop the Admin admin.
|
public AdminServer(AdminServerConfig adminServerConfig, BackendConfig backendConfig, KdcConfig kdcConfig) throws KrbException
adminServerConfig - The admin server configbackendConfig - The backend configkdcConfig - The kdc configKrbException - epublic AdminServer(File confDir) throws KrbException
confDir - The conf dirKrbException - epublic AdminServer()
public void setAdminServerRealm(String realm)
realm - The kdc realmpublic void setAdminHost(String adminHost)
adminHost - The kdc hostpublic void setAdminServerPort(int adminPort)
adminPort - The admin portpublic void setAdminTcpPort(int adminTcpPort)
adminTcpPort - The admin tcp portpublic void setAllowUdp(boolean allowUdp)
allowUdp - true if allow udppublic void setAllowTcp(boolean allowTcp)
allowTcp - true if allow tcppublic void setAdminUdpPort(int adminUdpPort)
adminUdpPort - The admin udp portpublic void setWorkDir(File workDir)
workDir - The work dirpublic void enableDebug()
public void setInnerAdminServerImpl(InternalAdminServer innerAdminServerImpl)
innerAdminServerImpl - The inner admin implementationpublic AdminServerSetting getAdminServerSetting()
public AdminServerConfig getAdminServerConfig()
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–2022 The Apache Software Foundation. All rights reserved.