Class KdcSetting
java.lang.Object
org.apache.kerby.kerberos.kerb.server.KdcSetting
- All Implemented Interfaces:
ServerSetting
KDC setting that combines startup options and kdc config.
-
Constructor Summary
ConstructorsConstructorDescriptionKdcSetting(KdcConfig kdcConfig, org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig) KdcSetting(org.apache.kerby.KOptions startupOptions, KdcConfig config, org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig) KdcSetting constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowTcp()Get whether tcp protocol is allowedbooleanallowUdp()Get whether udp protocol is allowedintCheck kdc tcp setting and see if any bad.intCheck kdc udp setting and see if any bad.org.apache.kerby.kerberos.kerb.identity.backend.BackendConfigGet the backend config.Get the KDC config.intGet kdc portGet KDC realm.intGet kdc tcp portintGet kdc udp port
-
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 optionsconfig- kdc configurationbackendConfig- backend configuration
-
KdcSetting
public KdcSetting(KdcConfig kdcConfig, org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig backendConfig)
-
-
Method Details
-
getKdcConfig
Get the KDC config.- Specified by:
getKdcConfigin interfaceServerSetting- Returns:
- kdc configuration
-
getBackendConfig
public org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig getBackendConfig()Get the backend config.- Specified by:
getBackendConfigin interfaceServerSetting- Returns:
- backend configuration
-
getKdcHost
-
checkGetKdcTcpPort
public int checkGetKdcTcpPort() throws org.apache.kerby.kerberos.kerb.KrbExceptionCheck 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.KrbExceptionCheck 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
Get KDC realm.- Specified by:
getKdcRealmin interfaceServerSetting- Returns:
- KDC realm
-