Class LDAPPasswordEncoderService
- java.lang.Object
-
- de.hybris.platform.servicelayer.user.impl.DefaulPasswordEncoderService
-
- de.hybris.platform.ldap.services.impl.LDAPPasswordEncoderService
-
- All Implemented Interfaces:
PasswordEncoderService
public class LDAPPasswordEncoderService extends DefaulPasswordEncoderService
LDAP specific password checking service.
-
-
Constructor Summary
Constructors Constructor Description LDAPPasswordEncoderService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(UserModel user, java.lang.String plainPassword)
Checks if the encoded password (stored in the user) matches the given plain text password.-
Methods inherited from class de.hybris.platform.servicelayer.user.impl.DefaulPasswordEncoderService
decode, encode, getSupportedEncodings, isSupportedEncoding, isValid, setEncoderFactory
-
-
-
-
Method Detail
-
isValid
public boolean isValid(UserModel user, java.lang.String plainPassword)
Description copied from interface:PasswordEncoderService
Checks if the encoded password (stored in the user) matches the given plain text password. For this the plain password will be encoded and compared with the user's encoded password.- Specified by:
isValid
in interfacePasswordEncoderService
- Overrides:
isValid
in classDefaulPasswordEncoderService
- Parameters:
user
- the user contains the encoded password and the (password) encodingplainPassword
- the plain text password- Returns:
true
if the encoded passwords matches,false
otherwise
-
-