Class LdapClientImpl

java.lang.Object
org.gridgain.internal.security.ldap.client.LdapClientImpl
All Implemented Interfaces:
LdapClient

public class LdapClientImpl extends Object implements LdapClient
Common Ldap client implementation.
  • Constructor Details

    • LdapClientImpl

      public LdapClientImpl(org.gridgain.internal.security.ldap.configuration.LdapAuthenticationProviderView ldapAuthenticationProviderView)
      Constructor.
      Parameters:
      ldapAuthenticationProviderView - Ldap authentication configuration.
  • Method Details

    • authenticate

      public LdapUserContext authenticate(String username, String password) throws LdapAuthenticationException
      Description copied from interface: LdapClient
      Authenticates method.

      The returned context identifies the directory entry that was authenticated, not the string the client sent: because Ldap matches names case-insensitively, the name it carries is the directory's own spelling and may differ from username. Callers must use that name as the user's identity.

      Specified by:
      authenticate in interface LdapClient
      Parameters:
      username - Name of authenticated user.
      password - Password of authenticated user.
      Returns:
      Context with authenticated information.
      Throws:
      LdapAuthenticationException - in case when authentication fails for any other reason: an unreachable server, a misconfiguration, or an ambiguous or missing user.