dimanche 26 juillet 2020

How should I transfer object with sesitive data from view to Hibernate ORM?

To create new account user must to complete the form with some more or less sensitive data like e-mail, password, username, PGP public key. Data is validate and if everything is correct on their basis app creates entities with: user acc data, his public key and verification token which be send to him by email as part of the account confirmation.

  1. How should I transfer user informations from view to Hibernate ORM? Is DTO object a good solution? Can password be transfer in plain text?
  2. What design patterns should I use to create all of there objects based on DTO?

Aucun commentaire:

Enregistrer un commentaire