How can I monitor security access from my Java program?

John Zukowski

Setting the java.security.debug system property allows you to watch accesses that pass through the security manager. To find out the different options, ask for help:

java -Djava.security.debug=help foo
to get the following:
all       turn on all debugging
access    print all checkPermission results
jar       jar verification
policy    loading and granting
scl       permissions SecureClassLoader assigns

The following can be used with access:

stack     include stack trace
domain    dumps all domains in context
failure   before throwing exception, dump stack
          and domain that didn't have permission
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact