Class SHA1PasswordEncoder
java.lang.Object
de.hybris.platform.persistence.security.SHA1PasswordEncoder
- All Implemented Interfaces:
PasswordEncoder,Serializable
@Deprecated(since="ages",
forRemoval=true)
public class SHA1PasswordEncoder
extends Object
implements PasswordEncoder
Deprecated, for removal: This API element is subject to removal in a future version.
since ages
CAUTION: SHA-1 is broken !!!!
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateSHA1(String plain) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if theencodedpassword (from the user, from the database) and theplainpassword (from the login screen) matches.Deprecated, for removal: This API element is subject to removal in a future version.Decode the givenencodedpassword.Deprecated, for removal: This API element is subject to removal in a future version.Returns the encoded password string based on the implementation of this interface and by the givenplainpassword.
-
Constructor Details
-
SHA1PasswordEncoder
public SHA1PasswordEncoder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
calculateSHA1
Deprecated, for removal: This API element is subject to removal in a future version. -
encode
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PasswordEncoderReturns the encoded password string based on the implementation of this interface and by the givenplainpassword. The uid can be used as additional salt (see SaltedMD5PasswordEncoder).- Specified by:
encodein interfacePasswordEncoder- Parameters:
uid- mostly userID, mostly not usedplain- the plain password- Returns:
- the encoded password
- See Also:
-
check
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PasswordEncoderChecks if theencodedpassword (from the user, from the database) and theplainpassword (from the login screen) matches.- Specified by:
checkin interfacePasswordEncoder- Parameters:
uid- mostly the user ID and mostly not used. For MD5 used as salt.encoded- the encoded passwordplain- the plain text password- Returns:
trueif they match,falseotherwise.- See Also:
-
decode
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PasswordEncoderDecode the givenencodedpassword. Throws exception if this is not possible.- Specified by:
decodein interfacePasswordEncoder- Parameters:
encoded- the encoded password- Returns:
- the decoded password
- Throws:
EJBCannotDecodePasswordException- if the password cannot be decoded. (MD5 passwords cannot be decoded)- See Also:
-