Class ServerConfigUserLdap


  • public class ServerConfigUserLdap
    extends Object
    Defines an LDAP dictionary or Active Directory as user source.
    • Constructor Detail

      • ServerConfigUserLdap

        public ServerConfigUserLdap()
    • Method Detail

      • getCertificatesTrustMode

        @Nullable
        public @Nullable ServerConfigUserLdap.CertificatesTrustModeEnum getCertificatesTrustMode()
        Specifies the mode of handling the certificates presented by the LDAP server during connection establishment. * validate = Only certificates that can be verified as publicly valid are classified as trusted. It may be necessary to place the certificate or the issuer's certificate in the server's truststore. Self-signed certificates (e.g. from an own certificate authority) are excluded if they cannot be verified via a configured truststore. * acceptAll = All certificates are classified as trusted, including expired, unverifiable, invalid or self-signed certificates.
        Returns:
        certificatesTrustMode
      • getConnectionName

        @Nullable
        public @Nullable String getConnectionName()
        The name of the user used to access the LDAP server. (e.g. \"cn=ldapuser,cn=Users,dc=example,dc=local\".)
        Returns:
        connectionName
      • setConnectionName

        public void setConnectionName​(String connectionName)
      • getConnectionPassword

        @Nullable
        public @Nullable String getConnectionPassword()
        The password used to access the LDAP server.
        Returns:
        connectionPassword
      • setConnectionPassword

        public void setConnectionPassword​(String connectionPassword)
      • getConnectionURL

        @Nullable
        public @Nullable String getConnectionURL()
        The URL used to connect to the LDAP server. (e.g. \"ldap://server.example.com:389/\".)
        Returns:
        connectionURL
      • setConnectionURL

        public void setConnectionURL​(String connectionURL)
      • getFollowReferral

        @Nullable
        public @Nullable Boolean getFollowReferral()
        When set to true, all LDAP requests that respond with references are followed. The same schema and credentials are used for the referred request.
        Returns:
        followReferral
      • setFollowReferral

        public void setFollowReferral​(Boolean followReferral)
      • getRoleBase

        @Nullable
        public @Nullable String getRoleBase()
        The Base for the LDAP user's role determination. (e.g. \"CN=Users,DC=example,DC=local\".)
        Returns:
        roleBase
      • setRoleBase

        public void setRoleBase​(String roleBase)
      • getRoleField

        @Nullable
        public @Nullable String getRoleField()
        The field indicating, that a user is part of a group. (e.g. \"cn\".)
        Returns:
        roleField
      • setRoleField

        public void setRoleField​(String roleField)
      • getRoleSearch

        @Nullable
        public @Nullable String getRoleSearch()
        The LDAP request used to find the user's role with. (e.g. \"(member={0})\".)
        Returns:
        roleSearch
      • setRoleSearch

        public void setRoleSearch​(String roleSearch)
      • getUserBase

        @Nullable
        public @Nullable String getUserBase()
        The Base for the LDAP user search. (e.g. \"CN=Users,DC=example,DC=local\".)
        Returns:
        userBase
      • setUserBase

        public void setUserBase​(String userBase)
      • getUserPKCS12

        @Nullable
        public @Nullable ServerConfigUserPKCS12 getUserPKCS12()
        Get userPKCS12
        Returns:
        userPKCS12
      • getUserSearch

        @Nullable
        public @Nullable String getUserSearch()
        The LDAP request used to find the user's login name with. (e.g. \"(sAMAccountName={0})\".)
        Returns:
        userSearch
      • setUserSearch

        public void setUserSearch​(String userSearch)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object