Class KdcSetting

java.lang.Object
org.apache.kerby.kerberos.kerb.server.KdcSetting
All Implemented Interfaces:
ServerSetting

public class KdcSetting extends Object implements ServerSetting
KDC setting that combines startup options and kdc config.
  • Constructor Details

    • KdcSetting

      public KdcSetting(org.apache.kerby.KOptions startupOptions, KdcConfig config, org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig)
      KdcSetting constructor
      Parameters:
      startupOptions - startup options
      config - kdc configuration
      backendConfig - backend configuration
    • KdcSetting

      public KdcSetting(KdcConfig kdcConfig, org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig)
  • Method Details

    • getKdcConfig

      public KdcConfig getKdcConfig()
      Get the KDC config.
      Specified by:
      getKdcConfig in interface ServerSetting
      Returns:
      kdc configuration
    • getBackendConfig

      public org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig getBackendConfig()
      Get the backend config.
      Specified by:
      getBackendConfig in interface ServerSetting
      Returns:
      backend configuration
    • getKdcHost

      public String getKdcHost()
    • checkGetKdcTcpPort

      public int checkGetKdcTcpPort() throws org.apache.kerby.kerberos.kerb.KrbException
      Check kdc tcp setting and see if any bad.
      Returns:
      valid tcp port or -1 if not allowTcp
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException - e
    • checkGetKdcUdpPort

      public int checkGetKdcUdpPort() throws org.apache.kerby.kerberos.kerb.KrbException
      Check kdc udp setting and see if any bad.
      Returns:
      valid udp port or -1 if not allowUdp
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException - e
    • getKdcTcpPort

      public int getKdcTcpPort()
      Get kdc tcp port
      Returns:
      kdc tcp port
    • getKdcPort

      public int getKdcPort()
      Get kdc port
      Returns:
      kdc port
    • allowTcp

      public boolean allowTcp()
      Get whether tcp protocol is allowed
      Returns:
      tcp protocol is allowed or not
    • allowUdp

      public boolean allowUdp()
      Get whether udp protocol is allowed
      Returns:
      udp protocol is allowed or not
    • getKdcUdpPort

      public int getKdcUdpPort()
      Get kdc udp port
      Returns:
      udp port
    • getKdcRealm

      public String getKdcRealm()
      Get KDC realm.
      Specified by:
      getKdcRealm in interface ServerSetting
      Returns:
      KDC realm