I\'ve implemented a Java package with functionality to operate a POS printer and cash drawer connected to the workstation via USB. I\'ve also implemented an applet to utili
I am not sure of the answer to your question, but have an experiment that should shed further light on the matter.
In the opening lines of the Applet.init()
call System.setSecurityManager(null)
. Then try to connect to the USB.
setSecurityManager(null)
will succeed, and remove the last remnants of the SecurityManager
. (Yes, even trusted applets have a security manager, it is just much less restrictive that the security manager for sand-boxed apps.)Note that I am not suggesting putting code like this into production. If your applet is running in the same JRE as other applets, nullifying the SM could also elevate the privileges of the other applets.