Class Authenticator.Builder

  • Enclosing class:
    Authenticator

    public static class Authenticator.Builder
    extends java.lang.Object
    Authenticator builder.
    • Constructor Detail

      • Builder

        protected Builder()
        Default constructor.
    • Method Detail

      • dnResolver

        public Authenticator.Builder dnResolver​(DnResolver resolver)
        Sets the DN resolver.
        Parameters:
        resolver - DN resolver
        Returns:
        this builder
      • authenticationHandler

        public Authenticator.Builder authenticationHandler​(AuthenticationHandler handler)
        Sets the authentication handler.
        Parameters:
        handler - authentication handler
        Returns:
        this builder
      • entryResolver

        public Authenticator.Builder entryResolver​(EntryResolver resolver)
        Sets the entry resolver.
        Parameters:
        resolver - entry resolver
        Returns:
        this builder
      • returnAttributes

        public Authenticator.Builder returnAttributes​(java.lang.String... attributes)
        Sets the return attributes.
        Parameters:
        attributes - return attributes
        Returns:
        this builder
      • build

        public Authenticator build()
        Returns the authenticator.
        Returns:
        authenticator