Posts

Showing posts with the label security

Debugging Java Security

When working with java.security packages it is handy to have a tool that would switch on some debugging information about stuff going on inside. Helpfully security classes already contain such debugging calls. These calls can be enabled via setting -Djava.security.debug=option(,option) system property. Options can be listed using sun.security.util.Debug.Help() static method call, that prints all the available options to the std.err stream. The available options are listed in the table. java.security.debug options list Option Description all Turn on all the debugging options access Print all checkPermission results The following can be used with access: stack Include stack trace for each permission check. dump Dump all pr...