public class LdapAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
LdapAuthenticatorImpl, does not require an LDAP username
and password for initial binding.| Modifier and Type | Field and Description |
|---|---|
static String |
DUMMY_ROLE
A fake role, used to by pass a strict API in Spring security
|
| Constructor and Description |
|---|
LdapAuthenticationProvider(UserService userService)
Constructor - Takes a UserService
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication auth) |
org.springframework.security.ldap.authentication.LdapAuthenticator |
getAuthenticator()
Get the authenticator
|
void |
setAuthenticator(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator)
Set the authenticator to be used
|
boolean |
supports(Class<?> clazz)
Do we support the authentication type presented
|
public static final String DUMMY_ROLE
public LdapAuthenticationProvider(UserService userService)
userService - public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication auth)
authenticate in interface org.springframework.security.authentication.AuthenticationProviderpublic boolean supports(Class<?> clazz)
supports in interface org.springframework.security.authentication.AuthenticationProviderclazz - Authentication we're trying to supportpublic org.springframework.security.ldap.authentication.LdapAuthenticator getAuthenticator()
public void setAuthenticator(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator)
authenticator - Copyright © 2007-2015 Ikasan. All Rights Reserved.