Skip to Content.
Sympa Menu

freetds - Re: Using freetds in a applet

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Curt Hagenlocher" <curt AT hagenlocher.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Using freetds in a applet
  • Date: Mon, 3 Sep 2001 07:13:45 -0700


> if this is the case - it is possible to influence the
> reflectpermissions? (can I turn it off?)
>
> if yes - can you give me a short code-example?

This is not done in code. (It wouldn't be real security if an
applet could just turn it off!) Instead, there is a file that
contains security policies. It will probably be in a subdirectory
of the JRE. On my machine, it's
C:\Program Files\JavaSoft\JRE\1.3.1\lib\security\java.policy.

Try adding, to the "default permissions" section, the line
permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";

and see if it makes a difference. I don't really know much about
Java security; this all comes from about 10 minutes browsing the
"on-line help" (Google) the last time someone asked this question.

--
Curt Hagenlocher
curt AT hagenlocher.org




Archive powered by MHonArc 2.6.24.

Top of Page