Class SearchDnResolver.Builder

  • Enclosing class:
    SearchDnResolver

    public static class SearchDnResolver.Builder
    extends Object
    Search DN resolver builder.
    • Constructor Detail

      • Builder

        protected Builder()
        Default constructor.
    • Method Detail

      • filterParameters

        public SearchDnResolver.Builder filterParameters​(Object... params)
        Sets the user filter parameters.
        Parameters:
        params - filter parameters
        Returns:
        this builder
      • allowMultipleDns

        public SearchDnResolver.Builder allowMultipleDns​(boolean multipleDns)
        Sets whether to allow multiple DNs.
        Parameters:
        multipleDns - whether to allow multiple DNs
        Returns:
        this builder
      • subtreeSearch

        public SearchDnResolver.Builder subtreeSearch​(boolean b)
        Sets whether to perform a subtree search or a onelevel search.
        Parameters:
        b - whether to perform a subtree search or a onelevel search
        Returns:
        this builder
      • resolveFromAttribute

        public SearchDnResolver.Builder resolveFromAttribute​(String attributeName)
        Sets the attribute to use to resolve the DN.
        Parameters:
        attributeName - attribute name
        Returns:
        this builder
      • build

        public SearchDnResolver build()
        Returns the search DN resolver.
        Returns:
        search DN resolver