Class PKbasedSaltedMD5PasswordEncoder

  • All Implemented Interfaces:
    PasswordEncoder, java.io.Serializable

    @Deprecated
    public class PKbasedSaltedMD5PasswordEncoder
    extends SaltedMD5PasswordEncoder
    Deprecated.
    since ages
    MD5 password encoder, which uses the user PK as salt.
    Advantage: Changing the 'user id' will not affect the stored password, which will be the case if we would use the 'user id' as salt like in our SaltedMD5PasswordEncoder
    Disadvantage: Exporting and reimporting of the user passwords into a new system, will not work because of the changed PK values.
    See Also:
    Serialized Form
    • Constructor Detail

      • PKbasedSaltedMD5PasswordEncoder

        public PKbasedSaltedMD5PasswordEncoder()
        Deprecated.
    • Method Detail

      • setUserService

        public void setUserService​(UserService userService)
        Deprecated.
        Parameters:
        userService - the userService to set
      • generateUserSpecificSalt

        protected java.lang.String generateUserSpecificSalt​(java.lang.String userId)
        Deprecated.
        Description copied from class: SaltedMD5PasswordEncoder
        This implementation will still return the assigned user id.
        Overrides:
        generateUserSpecificSalt in class SaltedMD5PasswordEncoder
        Parameters:
        userId - the user id
        Returns:
        the string representation of the user PK.