umakanth mandela wrote:
Hello,

I have been using derby and i want to set the password
for derby database.

it is accepting the password attribute
but sencond time it is opening the database even if
provide the wrong password

Hi, Umakanth,

Authentication is off by default, which is why a wrong password works. Turn authentication on by setting this property:

   derby.connection.requireAuthentication=true

If you want to use Derby's built-in authentication, also set this:

   derby.authentication.provider=BUILTIN

Here are some references:

   http://db.apache.org/derby/docs/dev/devguide/cdevcsecure36127.html
   http://db.apache.org/derby/docs/dev/devguide/cdevcsecure21547.html

regards,

 -jean

Reply via email to