@Component(value="cuba_LdapLoginProvider") public class LdapLoginProvider extends java.lang.Object implements LoginProvider, org.springframework.core.Ordered
WebLdapConfig
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
LdapLoginProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
AuthenticationDetails |
login(Credentials credentials)
Authenticates a user and provides authentication details.
|
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
@Nullable public AuthenticationDetails login(Credentials credentials) throws LoginException
LoginProvider
login
in interface LoginProvider
credentials
- credentialsLoginException
- if authentication failspublic boolean supports(java.lang.Class<?> credentialsClass)
LoginProvider
supports
in interface LoginProvider
credentialsClass
- credentials classCredentials
object.public int getOrder()
getOrder
in interface org.springframework.core.Ordered