2

I want to launch an applet with sandbox permissions but it accesses System time and I has a system logger which am not sure can run in a protected view.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Polly
  • 21
  • 3
  • 4
    _"..which am not sure can run in a protected view"_ I'm not sure what is it, but can't you just try it? – Baby Mar 20 '14 at 08:48

1 Answers1

1

A sand-boxed applet can access System.currentTimeMillis().

A sand-boxed applet can only access an anonymous logger (i.e. not a named logger) as might be obtained from Logger.getAnonymousLogger(). I doubt most 3rd party APIs would have the ability to create an anonymous logger, as they are usually used in apps. with all-permissions or no security manager. Either way, the logger for a sand-boxed applet cannot dump the log to a place that would not be permitted in a sand box (e.g. File or a printer).

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433