@Profile(value="ldap") @Component(value="authenticationService") public class AuthenticationServiceImpl extends Object implements AuthenticationService
| Constructor and Description |
|---|
AuthenticationServiceImpl(org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveProperties> ldaptivePropertiesProvider,
DomainControllerProperties domainControllerProperties)
Instantiates a new authentication service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
passwordMatches(String userName,
String clearPassword)
Checks whether password matches or not.
|
void |
setBaseDnProvider(Function<String,String> baseDnProvider)
Sets base dn provider.
|
public AuthenticationServiceImpl(org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveProperties> ldaptivePropertiesProvider,
DomainControllerProperties domainControllerProperties)
ldaptivePropertiesProvider - the ldaptive properties providerdomainControllerProperties - the domain controller propertiespublic void setBaseDnProvider(Function<String,String> baseDnProvider)
baseDnProvider - the base dn providerpublic boolean passwordMatches(String userName, String clearPassword)
AuthenticationServicepasswordMatches in interface AuthenticationServiceuserName - the user nameclearPassword - the clear passwordtrue if the password matches, otherwise falseCopyright © 2020 bremersee.org. All rights reserved.