O
oziris
Hi !
-- I'm investigating the java security features for possible use in an
application I am writing.
-- One area that I have been experimenting with is extending the
SecurityManager class and overriding the checkPermission(Permission
perm) method.
-- When I do this and call
System.setSecurityManager(new MySecurityManager()),
java returns an AccessControlException for the
java.security.SecurityPermission
[getProperty.networkaddress.cache.ttl].
-- I've expected a lack in my java.policy (I'm a novice, I try...) so
I've add the line
permission java.security.SecurityPermission
"getProperty.networkaddress.cache.ttl"
but without effect.
-- I success in accessing the os.arch property, which is by default
defined in the java.policy file, but remove the line has no effect
(that still works).
-- Could anyone help me to override the defaut SystemManager and
understand the interaction that imply with the java.policy file.
Thanks a lot.
-o--
-- I'm investigating the java security features for possible use in an
application I am writing.
-- One area that I have been experimenting with is extending the
SecurityManager class and overriding the checkPermission(Permission
perm) method.
-- When I do this and call
System.setSecurityManager(new MySecurityManager()),
java returns an AccessControlException for the
java.security.SecurityPermission
[getProperty.networkaddress.cache.ttl].
-- I've expected a lack in my java.policy (I'm a novice, I try...) so
I've add the line
permission java.security.SecurityPermission
"getProperty.networkaddress.cache.ttl"
but without effect.
-- I success in accessing the os.arch property, which is by default
defined in the java.policy file, but remove the line has no effect
(that still works).
-- Could anyone help me to override the defaut SystemManager and
understand the interaction that imply with the java.policy file.
Thanks a lot.
-o--