java - derby db authorization not working -
i created database using code:
class.forname("org.apache.derby.jdbc.embeddeddriver"); connection conn = drivermanager.getconnection("jdbc:derby:./db;create=true;user=qwe;password=qwe"); conn.close();
after see ./db folder.
the database not protected authorization.
can connect db using netbeans or idea without entering user id , password.
how can protect db authorization system?
follow documentation: http://db.apache.org/derby/docs/10.11/security/
in particular, study user authentication (which different authorization): http://db.apache.org/derby/docs/10.11/security/cseccsecure42374.html
Comments
Post a Comment