Password in Embedded Mode?


Is there a way to setup a database file that will be accessed in embedded mode, such that it is locked with a password.  Thereby making it impossible to use ObjectDB to access the contents of the file without providing the correct password when obtaining a connection.  In my case, I'm interested in obtaining a JPA connection:

Map<String, String> map = new HashMap<String, String>();
map.put("blah.blah.password", "mypassword");
EntityManagerFactory emf = Persistence.createEntityManagerFactory(filename,map);

Currently ObjectDB requires a password (and a user name) only in client-server mode.

It seems that in embedded mode password protection would be useful only with database encryption.

If you are interested in database encryption please subscribe to that feature request.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Thanks very much.

Post Reply

To post a reply and/or subscribe to update notifications - please login