Configure the java.security file for your server

The java.security file is located in the ${java.home}/lib/security/ directory.

Search the 'policy.provider' string, comment the current line (with a '#' at the start of the line) and add this line below:

policy.provider=net.sf.jguard.security.JGuardPolicy

Search the 'login.config.url' string, comment the current line(s) (with a '#' at the start of the line) and add this line below :

login.config.url.1=file:${java.home}/lib/security/jGuard.loginScheme

Note that you can leave your initial 'login.config.url.x' lines uncommented if they should not concern jGuard protected applications. TIPS:

  • To preserve others applications, jGuard acts as a 'wrapper' for Policy operations which do not concern webapp security. So you can let jGuard configure the system java Policy automatically at webapp startup.
In this case, jGuard will not control at the application server startup the security, but only when the first webapp with AccessFilter starts.
  • the 'login.config.url' can be configured too, via a command-line argument when application server starts (not experimented yet):
-Djava.security.auth.login.config.url.1=file:${java.home}/lib/security/jGuard.loginScheme
Version 1.3 last modified by Alex Jacobs on 02/03/2006 at 23:06

Comments 0

No comments for this document

Attachments 0

No attachments for this document
 

Creator: Charles Gay on 2006/02/09 14:45
jGuard team copyright 2004-2007
1.1.1