public class SimpleKdcServer
extends org.apache.kerby.kerberos.kerb.server.KdcServer
| Constructor and Description |
|---|
SimpleKdcServer()
Default constructor.
|
SimpleKdcServer(File confDir,
KrbConfig krbConfig) |
SimpleKdcServer(org.apache.kerby.kerberos.kerb.server.KdcConfig kdcConfig,
org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig) |
SimpleKdcServer(KrbConfig krbConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAndExportPrincipals(File keytabFile,
String... principals)
Creates principals and export their keys to the specified keytab file.
|
void |
createPrincipal(String principal)
Create principal with principal name.
|
void |
createPrincipal(String principal,
String password)
Create principal with principal name and password.
|
void |
createPrincipals(String... principals)
Create principals.
|
void |
deletePrincipal(String principal)
Delete principal.
|
void |
deletePrincipals(String... principals)
Delete principals.
|
void |
exportPrincipal(String principal,
File keytabFile)
Export the keys of the specified principal into keytab file.
|
void |
exportPrincipals(File keytabFile)
Export principals to keytab file.
|
LocalKadmin |
getKadmin()
Get Kadmin operation interface.
|
KrbClient |
getKrbClient()
Get krb client.
|
KrbPkinitClient |
getPkinitClient() |
KrbTokenClient |
getTokenClient() |
File |
getWorkDir() |
void |
init() |
void |
setAllowTcp(boolean allowTcp) |
void |
setAllowUdp(boolean allowUdp) |
void |
setKdcHost(String kdcHost) |
void |
setKdcRealm(String realm) |
void |
setKdcTcpPort(int kdcTcpPort) |
void |
setKdcUdpPort(int kdcUdpPort) |
void |
setWorkDir(File workDir) |
void |
start() |
void |
stop() |
public SimpleKdcServer()
throws org.apache.kerby.kerberos.kerb.KrbException
org.apache.kerby.kerberos.kerb.KrbException - epublic SimpleKdcServer(org.apache.kerby.kerberos.kerb.server.KdcConfig kdcConfig,
org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig)
throws org.apache.kerby.kerberos.kerb.KrbException
org.apache.kerby.kerberos.kerb.KrbExceptionpublic SimpleKdcServer(KrbConfig krbConfig)
public void setWorkDir(File workDir)
setWorkDir in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic File getWorkDir()
public void setKdcRealm(String realm)
setKdcRealm in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void setKdcHost(String kdcHost)
setKdcHost in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void setKdcTcpPort(int kdcTcpPort)
setKdcTcpPort in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void setAllowUdp(boolean allowUdp)
setAllowUdp in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void setAllowTcp(boolean allowTcp)
setAllowTcp in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void setKdcUdpPort(int kdcUdpPort)
setKdcUdpPort in class org.apache.kerby.kerberos.kerb.server.KdcServerpublic void init()
throws org.apache.kerby.kerberos.kerb.KrbException
init in class org.apache.kerby.kerberos.kerb.server.KdcServerorg.apache.kerby.kerberos.kerb.KrbExceptionpublic void start()
throws org.apache.kerby.kerberos.kerb.KrbException
start in class org.apache.kerby.kerberos.kerb.server.KdcServerorg.apache.kerby.kerberos.kerb.KrbExceptionpublic KrbClient getKrbClient()
public KrbPkinitClient getPkinitClient()
public KrbTokenClient getTokenClient()
public LocalKadmin getKadmin()
public void createPrincipal(String principal) throws org.apache.kerby.kerberos.kerb.KrbException
principal - The principal nameorg.apache.kerby.kerberos.kerb.KrbException - epublic void createPrincipal(String principal, String password) throws org.apache.kerby.kerberos.kerb.KrbException
principal - The principal namepassword - The password to create keysorg.apache.kerby.kerberos.kerb.KrbException - epublic void createPrincipals(String... principals) throws org.apache.kerby.kerberos.kerb.KrbException
principals - The principal listorg.apache.kerby.kerberos.kerb.KrbException - epublic void createAndExportPrincipals(File keytabFile, String... principals) throws org.apache.kerby.kerberos.kerb.KrbException
keytabFile - The keytab file to store principal keysprincipals - The principals to be createorg.apache.kerby.kerberos.kerb.KrbException - epublic void deletePrincipals(String... principals) throws org.apache.kerby.kerberos.kerb.KrbException
principals - The principals to be deleteorg.apache.kerby.kerberos.kerb.KrbException - epublic void deletePrincipal(String principal) throws org.apache.kerby.kerberos.kerb.KrbException
principal - The principal to be deleteorg.apache.kerby.kerberos.kerb.KrbException - epublic void exportPrincipals(File keytabFile) throws org.apache.kerby.kerberos.kerb.KrbException
keytabFile - The keytab fileorg.apache.kerby.kerberos.kerb.KrbException - epublic void exportPrincipal(String principal, File keytabFile) throws org.apache.kerby.kerberos.kerb.KrbException
principal - principalkeytabFile - keytab fileorg.apache.kerby.kerberos.kerb.KrbException - epublic void stop()
throws org.apache.kerby.kerberos.kerb.KrbException
stop in class org.apache.kerby.kerberos.kerb.server.KdcServerorg.apache.kerby.kerberos.kerb.KrbException - eCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.