org.springframework.ldap.core

## Interface AuthenticationSource

- All Known Implementing Classes:
    DefaultValuesAuthenticationSourceDecorator

      public interface AuthenticationSource

  An `AuthenticationSource` is responsible for providing the principal (user DN) and credentials to be used when creating a new context.
  Author:
    Mattias Hellborg Arthursson

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getCredentials()` Get the credentials to use when creating an authenticated context.
    `String` | `getPrincipal()` Get the principal to use when creating an authenticated context.

- - ### Method Detail

    - #### getPrincipal

          String getPrincipal()

      Get the principal to use when creating an authenticated context.
      Returns:
        the principal (userDn).

    - #### getCredentials

          String getCredentials()

      Get the credentials to use when creating an authenticated context.
      Returns:
        the credentials (password).