Class DefaultLdapUserTenantIdProvider

    • Constructor Detail

      • DefaultLdapUserTenantIdProvider

        public DefaultLdapUserTenantIdProvider​(LdapUserProperties userProperties)
    • Method Detail

      • determineTenantId

        public java.lang.String determineTenantId​(javax.naming.directory.Attributes attributes)
        Description copied from interface: LdapUserTenantIdProvider
        Method for extracting the tenant id for a user from the provided Attributes
        Specified by:
        determineTenantId in interface LdapUserTenantIdProvider
        Parameters:
        attributes - the attributes that can be used to determine the tenant id
        Returns:
        the tenant id that the user should have
      • createTenantIdFilter

        public java.util.Optional<org.springframework.ldap.filter.Filter> createTenantIdFilter​(java.lang.String queryTenantId)
        Description copied from interface: LdapUserTenantIdProvider
        Method for providing the optional Filter for the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.
        Specified by:
        createTenantIdFilter in interface LdapUserTenantIdProvider
        Parameters:
        queryTenantId - the query tenant id, never null
        Returns:
        the optional LDAP filter
      • createFilter

        protected org.springframework.ldap.filter.OrFilter createFilter​(java.util.Collection<java.lang.String> tenantIdMappings,
                                                                        java.lang.String tenantId)
      • setUserProperties

        public void setUserProperties​(LdapUserProperties userProperties)