Package org.springframework.ldap.core
Interface AuthenticationSource
-
- All Known Implementing Classes:
DefaultValuesAuthenticationSourceDecorator
public interface AuthenticationSourceAnAuthenticationSourceis responsible for providing the principal (user DN) and credentials to be used when creating a new context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCredentials()Get the credentials to use when creating an authenticated context.java.lang.StringgetPrincipal()Get the principal to use when creating an authenticated context.
-
-
-
Method Detail
-
getPrincipal
java.lang.String getPrincipal()
Get the principal to use when creating an authenticated context.- Returns:
- the principal (userDn).
-
getCredentials
java.lang.String getCredentials()
Get the credentials to use when creating an authenticated context.- Returns:
- the credentials (password).
-
-