Class PKbasedSaltedMD5PasswordEncoder

All Implemented Interfaces:
PasswordEncoder, Serializable

@Deprecated(since="ages", forRemoval=true) public class PKbasedSaltedMD5PasswordEncoder extends SaltedMD5PasswordEncoder
Deprecated, for removal: This API element is subject to removal in a future version.
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:
  • Constructor Details

    • PKbasedSaltedMD5PasswordEncoder

      public PKbasedSaltedMD5PasswordEncoder()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      userService - the userService to set
    • generateUserSpecificSalt

      protected String generateUserSpecificSalt(String userId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.