Class LdapConnectionConfig

    • Constructor Detail

      • LdapConnectionConfig

        public LdapConnectionConfig()
        Creates a default LdapConnectionConfig instance
    • Method Detail

      • isUseSsl

        public boolean isUseSsl()
        Checks if SSL (ldaps://) is used.
        Returns:
        true, if SSL is used
      • setUseSsl

        public void setUseSsl​(boolean useSsl)
        Sets whether SSL should be used.
        Parameters:
        useSsl - true to use SSL
      • getLdapPort

        public int getLdapPort()
        Gets the LDAP port.
        Returns:
        the LDAP port
      • setLdapPort

        public void setLdapPort​(int ldapPort)
        Sets the LDAP port.
        Parameters:
        ldapPort - the new LDAP port
      • getLdapHost

        public String getLdapHost()
        Gets the LDAP host.
        Returns:
        the LDAP host
      • setLdapHost

        public void setLdapHost​(String ldapHost)
        Sets the LDAP host.
        Parameters:
        ldapHost - the new LDAP host
      • getName

        public String getName()
        Gets the name that is used to authenticate the user.
        Returns:
        the name
      • setName

        public void setName​(String name)
        Sets the name which is used to authenticate the user.
        Parameters:
        name - the new name
      • setCredentials

        public void setCredentials​(String credentials)
        Sets the credentials.
        Parameters:
        credentials - the new credentials
      • getDefaultLdapPort

        public int getDefaultLdapPort()
        Gets the default LDAP port.
        Returns:
        the default LDAP port
      • getDefaultLdapsPort

        public int getDefaultLdapsPort()
        Gets the default LDAPS port.
        Returns:
        the default LDAPS port
      • getDefaultTimeout

        public long getDefaultTimeout()
        Gets the default timeout.
        Returns:
        the default timeout
      • getTimeout

        public long getTimeout()
        Gets the timeout.
        Returns:
        the timeout
      • setTimeout

        public void setTimeout​(long timeout)
        Sets the timeout.
        Parameters:
        timeout - the timeout to set
      • getSupportedLdapVersion

        public int getSupportedLdapVersion()
        Gets the supported LDAP version.
        Returns:
        the supported LDAP version
      • setTrustManagers

        public void setTrustManagers​(TrustManager... trustManagers)
        Sets the trust managers.
        Parameters:
        trustManagers - the new trust managers
      • setSslProtocol

        public void setSslProtocol​(String sslProtocol)
        Sets the SSL protocol.
        Parameters:
        sslProtocol - the new SSL protocol
      • setKeyManagers

        public void setKeyManagers​(KeyManager[] keyManagers)
        Sets the key managers.
        Parameters:
        keyManagers - the new key managers
      • setSecureRandom

        public void setSecureRandom​(SecureRandom secureRandom)
        Sets the secure random.
        Parameters:
        secureRandom - the new secure random
      • getEnabledCipherSuites

        public String[] getEnabledCipherSuites()
        Gets the cipher suites which are enabled.
        Returns:
        the cipher suites which are enabled
      • setEnabledCipherSuites

        public void setEnabledCipherSuites​(String[] enabledCipherSuites)
        Sets the cipher suites which are enabled
        Parameters:
        enabledCipherSuites - the cipher suites which are enabled
      • getEnabledProtocols

        public String[] getEnabledProtocols()
        Gets the protocols which are enabled.
        Returns:
        the protocol which are enabled
      • setEnabledProtocols

        public void setEnabledProtocols​(String... enabledProtocols)
        Sets the protocols which are enabled
        Parameters:
        enabledProtocols - the protocols which are enabled
      • isUseTls

        public boolean isUseTls()
        Checks if TLS is used.
        Returns:
        true, if TLS is used
      • setUseTls

        public void setUseTls​(boolean useTls)
        Sets whether TLS should be used.
        Parameters:
        useTls - true to use TLS