Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA/Encryption  RSS feed

Marcin Kwiatkowski
Ranch Hand
Posts: 32
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to encrypt password field in entity beans?

I've got something like this:

public class ApplicationUser{
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;

private String login;

private String password;



//user create
public void createApplicationUser(String login, String pass){
ApplicationUser user = new ApplicationUser();

I'm new to EJB technology, and not sure which tier should be responsible for encrypting data.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!