public final class SimpleKdcServerUtil extends Object
SimpleKdcServer
. Kerby KDC server is favored over Hadoop
org.apache.hadoop.minikdc server which has support in the HBaseTestingUtility at #setupMiniKdc.
The Kerby KDC Server came in with HBASE-5291. Its preferred. Less baggage.Modifier and Type | Field and Description |
---|---|
(package private) static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
SimpleKdcServerUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.kerby.kerberos.kerb.server.SimpleKdcServer |
getRunningSimpleKdcServer(File testDir,
Supplier<Integer> randomPortGenerator)
Returns a running kdc server.
|
(package private) static org.apache.kerby.kerberos.kerb.server.SimpleKdcServer |
getRunningSimpleKdcServer(File testDir,
Supplier<Integer> randomPortGenerator,
boolean portClash)
Internal method for testing.
|
static final org.slf4j.Logger LOG
private SimpleKdcServerUtil()
public static org.apache.kerby.kerberos.kerb.server.SimpleKdcServer getRunningSimpleKdcServer(File testDir, Supplier<Integer> randomPortGenerator) throws org.apache.kerby.kerberos.kerb.KrbException, IOException
org.apache.kerby.kerberos.kerb.KrbException
IOException
static org.apache.kerby.kerberos.kerb.server.SimpleKdcServer getRunningSimpleKdcServer(File testDir, Supplier<Integer> randomPortGenerator, boolean portClash) throws org.apache.kerby.kerberos.kerb.KrbException, IOException
portClash
- True if we want to generate BindException (for testing).org.apache.kerby.kerberos.kerb.KrbException
IOException
getRunningSimpleKdcServer(File, Supplier)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.