Class LDAPConfigProxyItem

All Implemented Interfaces:
JaloOnlyItem, JaloOnlySingletonItem, Serializable, Comparable

public class LDAPConfigProxyItem extends ConfigProxyItem
A singleton used to manage the LDAP specific properties.properties settings.

Uses ConfigItem iternally to read/store config properties.

CAUTION: The configproxyitem persistence mechanism is currently not supported by the core !!! (so we are using the project.properties settings, here)

See Also:
  • Field Details

  • Constructor Details

    • LDAPConfigProxyItem

      public LDAPConfigProxyItem()
  • Method Details

    • getProviderURLasList

      public List<String> getProviderURLasList()
    • getProviderURLasString

      public String getProviderURLasString()
    • setProviderURL

      public void setProviderURL(List value)
    • getLocalAccountsOnlyAsList

      public List getLocalAccountsOnlyAsList()
    • getLocalAccountsOnlyAsString

      public String getLocalAccountsOnlyAsString()
    • setLocalAccountsOnly

      public void setLocalAccountsOnly(List value)
    • isHybrisPoolingDisabled

      public boolean isHybrisPoolingDisabled()
    • getServerEnvironments

      public List<Hashtable<String,String>> getServerEnvironments()
      Build and return an array of DirContext environments.
      Returns:
      An array of hashtables suitable for creating DirContext objects.
    • getMaxRetries

      public int getMaxRetries()
      Returns:
      the max retry count.
    • getMinFailbackTime

      public int getMinFailbackTime()
      Set the current value for how many times servers will be tested (in total) before failing. If this method is not called, the class will default to three times the number of servers available.
    • setMinFailbackTime

      public void setMinFailbackTime(Integer minFailbackTime)
      Set the mimumim amount of time (ms) to wait before retrying the primary server in case of a failure. Default is 15 minutes.
      Parameters:
      minFailbackTime - - in ms.
    • getRootDN

      public String getRootDN()
      Returns:
      Returns the rootDN
    • setRootDN

      public void setRootDN(String rootDN)
      Parameters:
      rootDN - The rootDN to set.
    • setInitSize

      public void setInitSize(Integer value)
    • getInitSize

      public int getInitSize()
    • getPoolTimeOut

      public int getPoolTimeOut()
    • setPoolTimeOut

      public void setPoolTimeOut(Integer value)
    • setMaxSize

      public void setMaxSize(Integer value)
    • getMaxSize

      public int getMaxSize()
    • setPrefSize

      public void setPrefSize(Integer value)
    • getPrefSize

      public int getPrefSize()
    • setUsePooling

      public void setUsePooling(boolean value)
    • getUsePooling

      public boolean getUsePooling()
    • setAuthentication

      public void setAuthentication(EnumerationValue value)
    • getAuthentication

      public EnumerationValue getAuthentication()
    • setLoginField

      public void setLoginField(String value)
    • getLoginField

      public String getLoginField()
    • setCredentials

      public void setCredentials(char[] value)
    • getCredentials

      public char[] getCredentials()
    • setFactory

      public void setFactory(String value)
    • getTracing

      public boolean getTracing()
    • getFactory

      public String getFactory()
    • setSocketFactory

      public void setSocketFactory(String value)
    • getSocketFactory

      public String getSocketFactory()
    • getJNDIConnectionTimeout

      public int getJNDIConnectionTimeout()
    • setJNDIConnectionTimeout

      public void setJNDIConnectionTimeout(Integer value)
    • setCaCerts

      public void setCaCerts(String value)
    • getCaCerts

      public String getCaCerts()
    • setClientCerts

      public void setClientCerts(String value)
    • getClientCerts

      public String getClientCerts()
    • setCaKeyStorePwd

      public void setCaKeyStorePwd(String value)
    • getCaKeyStorePwd

      public String getCaKeyStorePwd()
    • setClientKeyStorePwd

      public void setClientKeyStorePwd(String value)
    • getClientKeyStorePwd

      public String getClientKeyStorePwd()
    • setCaKeyStoreType

      public void setCaKeyStoreType(String value)
    • getCaKeyStoreType

      public String getCaKeyStoreType()
    • setClientKeyStoreType

      public void setClientKeyStoreType(String value)
    • getClientKeyStoreType

      public String getClientKeyStoreType()
    • setPrincipal

      public void setPrincipal(String value)
    • getPrincipal

      public String getPrincipal()
    • setJNDIVersion

      public void setJNDIVersion(EnumerationValue value)
    • getJNDIVersion

      public EnumerationValue getJNDIVersion()
    • setSecurityProtocol

      public void setSecurityProtocol(String value)
    • getSecurityProtocol

      public String getSecurityProtocol()
    • getJNDIEnvironment

      public Hashtable<String,String> getJNDIEnvironment()
    • dumpEnvironmentValues

      public void dumpEnvironmentValues(Hashtable env)
    • testConnection

      public void testConnection(LDAPConfigProxyItem config) throws LDAPUnavailableException
      Throws:
      LDAPUnavailableException