Class KrbConfig
java.lang.Object
org.apache.kerby.config.Conf
org.apache.kerby.kerberos.kerb.common.Krb5Conf
org.apache.kerby.kerberos.kerb.client.KrbConfig
- All Implemented Interfaces:
org.apache.kerby.config.Config
public class KrbConfig
extends org.apache.kerby.kerberos.kerb.common.Krb5Conf
Kerb client side configuration API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowTcp()Is to allow TCP for KDCbooleanallowUdp()Is to allow UDP for KDCbooleanlongGet allowable clock skew.booleanGet whether allow weak crypto.Get capath of specified realms.Get default realm.List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType>Get default tgs encryption types.List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType>Get default ticket encryption types.booleanGet whether dns look up kdc.booleanGet whether dns look up realm.List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType>Get encryption types.Get KDC host nameintGet KDC port, as both TCP and UDP portsGet KDC realm.intGet KDC TCP portintGet KDC UDP portlongGet maximum renewable life time.longGet maximum ticket life time.longGet minimum ticket life time.getRealmSection(String realm) getRealmSectionItems(String realm, String key) Get renew life time.Get tgs principal.Get ticket life time.booleanGet whether body checksum verified.booleanGet whether empty addresses allowed.booleanGet whether forward is allowed.booleanGet whether pa encrypt timestamp required.booleanGet whether post dated is allowed.booleanGet whether preauth is required.booleanGet whether proxy is allowed.booleanGet whether renew is allowed.Methods inherited from class org.apache.kerby.kerberos.kerb.common.Krb5Conf
addKrb5Config, getBoolean, getEncryptionTypes, getEncryptionTypes, getEncTypes, getInt, getLong, getSection, getString, getStringArrayMethods inherited from class org.apache.kerby.config.Conf
addIniConfig, addJsonConfig, addMapConfig, addPropertiesConfig, addPropertiesConfig, addResource, addXmlConfig, getBoolean, getBoolean, getBoolean, getClass, getClass, getClass, getConfig, getConfig, getFloat, getFloat, getFloat, getInstance, getInstance, getInstance, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getNames, getResource, getString, getString, getString, getTrimmed, getTrimmed, reload, setBoolean, setBoolean, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString
-
Constructor Details
-
KrbConfig
public KrbConfig()
-
-
Method Details
-
enableDebug
public boolean enableDebug() -
getKdcHost
Get KDC host name- Returns:
- The kdc host
-
getKdcPort
public int getKdcPort()Get KDC port, as both TCP and UDP ports- Returns:
- The kdc host
-
getKdcTcpPort
public int getKdcTcpPort()Get KDC TCP port- Returns:
- The kdc tcp port
-
allowUdp
public boolean allowUdp()Is to allow UDP for KDC- Returns:
- true to allow UDP, false otherwise
-
allowTcp
public boolean allowTcp()Is to allow TCP for KDC- Returns:
- true to allow TCP, false otherwise
-
getKdcUdpPort
public int getKdcUdpPort()Get KDC UDP port- Returns:
- The kdc udp port
-
getKdcRealm
Get KDC realm.- Returns:
- The kdc realm
-
isPreauthRequired
public boolean isPreauthRequired()Get whether preauth is required.- Returns:
- true if preauth required
-
getTgsPrincipal
Get tgs principal.- Returns:
- The tgs principal
-
getAllowableClockSkew
public long getAllowableClockSkew()Get allowable clock skew.- Returns:
- The allowable clock skew
-
isEmptyAddressesAllowed
public boolean isEmptyAddressesAllowed()Get whether empty addresses allowed.- Returns:
- true if empty address is allowed
-
isForwardableAllowed
public boolean isForwardableAllowed()Get whether forward is allowed.- Returns:
- true if forward is allowed
-
isPostdatedAllowed
public boolean isPostdatedAllowed()Get whether post dated is allowed.- Returns:
- true if post dated is allowed
-
isProxiableAllowed
public boolean isProxiableAllowed()Get whether proxy is allowed.- Returns:
- true if proxy is allowed
-
isRenewableAllowed
public boolean isRenewableAllowed()Get whether renew is allowed.- Returns:
- true if renew is allowed
-
getMaximumRenewableLifetime
public long getMaximumRenewableLifetime()Get maximum renewable life time.- Returns:
- The maximum renewable life time
-
getMaximumTicketLifetime
public long getMaximumTicketLifetime()Get maximum ticket life time.- Returns:
- The maximum ticket life time
-
getMinimumTicketLifetime
public long getMinimumTicketLifetime()Get minimum ticket life time.- Returns:
- The minimum ticket life time
-
getEncryptionTypes
Get encryption types.- Returns:
- encryption type list
-
isPaEncTimestampRequired
public boolean isPaEncTimestampRequired()Get whether pa encrypt timestamp required.- Returns:
- true if pa encrypt time required
-
isBodyChecksumVerified
public boolean isBodyChecksumVerified()Get whether body checksum verified.- Returns:
- true if body checksum verified
-
getDefaultRealm
Get default realm.- Returns:
- The default realm
-
getDnsLookUpKdc
public boolean getDnsLookUpKdc()Get whether dns look up kdc.- Returns:
- true if dnc look up kdc
-
getDnsLookUpRealm
public boolean getDnsLookUpRealm()Get whether dns look up realm.- Returns:
- true if dns look up realm
-
getAllowWeakCrypto
public boolean getAllowWeakCrypto()Get whether allow weak crypto.- Returns:
- true if allow weak crypto
-
getTicketLifetime
Get ticket life time.- Returns:
- The ticket life time
-
getRenewLifetime
Get renew life time.- Returns:
- The renew life time
-
getDefaultTgsEnctypes
Get default tgs encryption types.- Returns:
- The tgs encryption type list
-
getDefaultTktEnctypes
Get default ticket encryption types.- Returns:
- The encryption type list
-
getPkinitAnchors
-
getPkinitIdentities
-
getPkinitKdcHostName
-
getRealmSectionItems
-
getRealmSection
-
getCapath
public LinkedList<String> getCapath(String sourceRealm, String destRealm) throws org.apache.kerby.kerberos.kerb.KrbException Get capath of specified realms.- Parameters:
sourceRealm- source realmdestRealm- dest realm- Returns:
- The capath from sourceRealm to destRealm
- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-