[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22914] New: gnu.java.security.PolicyFile reads only a spe
From: |
csm at gnu dot org |
Subject: |
[Bug classpath/22914] New: gnu.java.security.PolicyFile reads only a specific file |
Date: |
8 Aug 2005 06:07:23 -0000 |
The PolicyFile class now always reads a specific file (see DEFAULT_POLICY
constant).
It would be very helpful to use this class also for other files or policy
resources.
So a way to use this class without the default files is needed, where I pass
the content of the policy file as an argument (content, because it may be a
resource from any place).
Ewout
------- Additional Comments From csm at gnu dot org 2005-08-08 06:07 -------
Correct. The implementation in Classpath does not follow the specification
(http://java.sun.com/j2se/
1.4.2/docs/guide/security/PolicyFiles.html) closely enough; you can augment the
default policy, but can't
change it altogether. Also, user policy files (~/.java.policy) are not read,
and the property names are wrong
(policy.file.n vs. policy.url.n).
Per the documentation, you can select a different default policy with the
'java.security.policy' property.
Prepending a '=' will enforce using only that policy URL.
Note, this bug should be confirmed and assigned to me, but I can change neither
field.
--
Summary: gnu.java.security.PolicyFile reads only a specific file
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: from-classpath at savannah dot gnu dot org
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22914
- [Bug classpath/22914] New: gnu.java.security.PolicyFile reads only a specific file,
csm at gnu dot org <=