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 Details

    • KrbConfig

      public KrbConfig()
  • Method Details

    • enableDebug

      public boolean enableDebug()
    • getKdcHost

      public String 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

      public String getKdcRealm()
      Get KDC realm.
      Returns:
      The kdc realm
    • isPreauthRequired

      public boolean isPreauthRequired()
      Get whether preauth is required.
      Returns:
      true if preauth required
    • getTgsPrincipal

      public String 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

      public List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType> 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

      public String 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

      public String getTicketLifetime()
      Get ticket life time.
      Returns:
      The ticket life time
    • getRenewLifetime

      public String getRenewLifetime()
      Get renew life time.
      Returns:
      The renew life time
    • getDefaultTgsEnctypes

      public List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType> getDefaultTgsEnctypes()
      Get default tgs encryption types.
      Returns:
      The tgs encryption type list
    • getDefaultTktEnctypes

      public List<org.apache.kerby.kerberos.kerb.type.base.EncryptionType> getDefaultTktEnctypes()
      Get default ticket encryption types.
      Returns:
      The encryption type list
    • getPkinitAnchors

      public List<String> getPkinitAnchors()
    • getPkinitIdentities

      public List<String> getPkinitIdentities()
    • getPkinitKdcHostName

      public String getPkinitKdcHostName()
    • getRealmSectionItems

      public List<Object> getRealmSectionItems(String realm, String key)
    • getRealmSection

      public Map<String,Object> getRealmSection(String realm)
    • getCapath

      public LinkedList<String> getCapath(String sourceRealm, String destRealm) throws org.apache.kerby.kerberos.kerb.KrbException
      Get capath of specified realms.
      Parameters:
      sourceRealm - source realm
      destRealm - dest realm
      Returns:
      The capath from sourceRealm to destRealm
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException