securitymanager Questions
7
Solved
Hi I have RMI application and now I try to invoke some methods at server from my client. I have following code:
public static void main(final String[] args) {
try {
//Setting the security manage...
Trigonal asked 12/6, 2011 at 13:7
3
Solved
I'm trying to get myself familiar with the SecurityManager but even this simple scenario fails. When I run the following from inside my IDE or from command line I get the following exception;
acce...
Fledgy asked 4/11, 2018 at 16:48
0
I'm curious if it's possible to restrict who can write to System.out/System.err using a SecurityManager. Looking at System.java this doesn't appear to be possible out of the box, but perhaps there'...
Commutative asked 25/6, 2020 at 21:20
2
Solved
Does implementing the Java Security Manager result in decreased performance?
Pelage asked 7/9, 2010 at 6:46
1
I started my Tomcat 9.0 on Windows 10 with:
-Djava.security.manager
-Djava.security.policy==C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\catalina.policy
-Djava.security.debug=access...
Charley asked 18/1, 2019 at 12:25
1
The Java Security Manager method checkMemberAccess() had a parameter that contained the class that Reflection was being called on. This method was deprecated, with a description saying to use check...
Carman asked 17/12, 2018 at 23:27
3
Solved
I've been reading quite a lot of questions on Stackoverflow about this question but couldn't quit find a solution or answer for my problem. If there is already one I would be grateful if somebody w...
Kolyma asked 24/10, 2016 at 12:53
3
Solved
Is there a performance penalty when using a SecurityManager?
I need the following:
public class ExitHelper {
public ExitHelper() {
System.setSecurityManager(new ExitMonitorSecurityManager());...
Exude asked 22/11, 2011 at 17:10
4
Solved
In the Java policy file, the grant codeBase syntax specifies which codebase should be granted which permissions. for example,
grant codeBase "file:/C:/abc.jar" {
permission
java.security.AllPe...
Pact asked 15/2, 2011 at 12:21
1
Solved
I am not well versed in java security managers and therefore want to confirm my understanding:
I have a java process that randomly stops (shutdown hook runs) even though there is no trace of someo...
Gird asked 30/8, 2017 at 10:28
3
Im using Apache Tomcat 7. When I'm running Tomcat with security manager and with the -Djava.security.debug parameter I'm getting so much of text in console. I can't read the text in console. So I n...
Jael asked 14/10, 2014 at 11:37
3
Solved
I'm working on a project with heavy security constraints.
A requirement is to seal our jars.
Since we sealed jars, a lot of our junit-tests failed with the following error :
java.lang.SecurityExc...
Adamok asked 4/3, 2013 at 16:8
2
Solved
I am a beginner of SecurityManager. I have been trying to use a Java SecurityManager to sandbox some untrusted code (supposed to be very simple code, like calculate the weight etc.) in linux. I use...
Alliaceous asked 5/8, 2014 at 6:53
3
Is there any way for a SecurityManager in Java to selectively grant ReflectPermission("suppressAccessChecks") depending on the details of what setAccessible() is being called on? I don't see any wa...
Alti asked 22/2, 2010 at 23:25
1
Solved
I am creating an application that allows users to execute uploaded Java files. I am trying to restrict what they can do with a Security Manager. Would a blank policy file be the most restrictive, n...
Shirlyshiroma asked 30/12, 2014 at 18:56
4
Solved
I am using a third party library that does a System.exit() if it encounters exceptions. I am using the APIs from a jar. Is there anyway that I can prevent the System.exit() call because it causes m...
Windom asked 23/3, 2011 at 5:42
2
Solved
In a software for a customer we have to read given URLs to parse their content. Also the customer needs to activate Tomcat-Security-Manager to let Java-Policies control what the program does.
Now,...
Heterotypic asked 18/9, 2015 at 7:56
1
Solved
I want to set a custom Policy by defining my own class that extends the Policy class as follows:
public class MyPolicy extends Policy {
public MyPolicy() {
super();
}
@Override
public Permi...
Letaletch asked 16/7, 2015 at 15:44
2
Solved
I have no way to explain this one, but I found this phenomenon in somebody else's code:
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.uti...
Rothermere asked 25/6, 2015 at 1:36
2
Solved
do you happen to know explanation why java security manager doesn't forbid creating new threads or starting them? new FileWriter is under security manager, but neither new Thread(), nor threadInsta...
Depilate asked 7/4, 2013 at 22:20
1
Solved
I try to install a security manager from a Clojure program and am stuck short after a good start.
This one works for me in Clojures simple REPL, in the Lein REPL, and in the Cider REPL in Emacs. I...
Svend asked 9/1, 2014 at 19:43
1
Solved
I am currently working on developing a small Java application in which trusted code must be run alongside untrusted code. To accomplish this, I have installed a custom SecurityManager that throws S...
Conyers asked 11/12, 2013 at 19:3
1
Solved
I'm a little confused with how Java (6+) distributes its security framework. On one hand, you have the following packages (and their respective subpackages & types):
java.security.*
javax.sec...
Laminar asked 26/11, 2013 at 15:3
2
I'm building a SWING application and also need to write a custom SecurityManager. If I write an empty class which extends SecurityManager like this
public class Sandbox extends SecurityManager {}
...
Contumacy asked 3/9, 2013 at 17:16
1
Solved
I ran across an issue when attempting to port an application over to JApplet so it can run on a browser.
Program Contents:
Jar file. Contains my CustomClassLoader implementation. Stored on websi...
Jameejamel asked 30/7, 2013 at 10:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.