greg_barton wrote:
Well, I hear that postgres can be a kerberos service.
http://www.guides.sk/pgsql/sgml/auth-methods.html#KERBEROS-AUTH I'm assuming that the java classes could interface with it. Big "if," though. :)
I do not think it can help, you need to protect keys any way, if you do not want to let user connecto to database without app.
The most common way for desktop app is to use RDBMS security, user know his password and enters on app startup (app never stores passwords itself). If input validation rules and security is implemented in RDBMS you do not need to care about connection type (direct access is safe as app connection).
P.S. I am sure java developers can not agree with this, but do not ignore
RDMS features if you need quality.