I'm working on a project to submit the new 10+2 Security Filing data to Customs & Border Patrol (as required by DHS). Anyone else doing this? I need to be able ... |
How do I securely delete files in java? I tried the code at javafaq.nu, but the problem is you can't actually delete the file on windows once it has ... |
I have been asked to implement a file upload program. The program is a Java Web Start application responsible for uploading the contents of a CD to a web application. ... |
I got stuck with this. I need to get permission info of NTFS files with Java or C++.
Those info should be stored in Access Control List (ACL), but I don't know ... |
I’m looking for a bit of feedback on the practice of requesting users to authenticate to an intranet based web app by entering their AD credentials directly in form fields. For ... |
grant {
permission java.io.FilePermission "C:\\class\\*", "read, write";
permission java.lang.RuntimePermission "createClassLoader";
};
My policy.txt
java.security.AccessControlException: access denied (java.io.FilePermission c:\class read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
...
|
Is it possible to access a file (read/write/delete/move...) using different credentials then the one the logged in user?
|
|
How can I force Ant to use my java.security file? I'm trying to build with Ant from a command line and use this file in the JVM. Is there ... |
We're developing an applet and need it to be able to read/write files in the user's temporary files directory (e.g. C:\Documents and Settings\USERNAME\Local Settings\Temp).
The applet is signed, the user clicks ... |
I'm developing a program that needs to load and save data in external files, I have been searching for options and I have chosen to save the data in a binary ... |
I have got a big and strange problem with PKCS7 securities files.
I create a p7s file like is suggested in http://www.thatsjava.com/java-tech/85019/ where it create the file and validate it ... |
Ok, I exported all the certs in my browser by doing this: Tools, Options..., Advanced, Encryption, View Certificates, Your Certificates, Backup All... (this is in Firefox).
There are 4 certs in the ... |
I have a Java webapp which is vulnerable to the directory transversal (aka path transversal) attack via URL encoding. After being authenticated:
- if I hit http://localhost:8080/Web/WEB-INF/web.xml, I get a 404 (which is ...
|
I have a signed applet. To implement some plugin architecture I download and store to disk a JAR file with specific classes.
Then I load these classes with URLCLassLoader. So, now I ... |
I have a RSA private key file (OCkey.pem). Using java i have to get the private key from this file. this key is generated using the below openssl command.
Note : ... |
I am novice java programmer. I want to implement an IEEE paper "Ensuring Data Storage seurity in cloud computing using sobol sequence" . I want to learn about Reed Solomon ... |
Is it possible to prevent a signed applet from deleting files on the user's local machine?
|
This exception occurs when I want to access a PDF file and print it:
java.security.AccessControlException: access denied (java.io.FilePermission write)
To access file and print is all within one function and ... |
Hi guys, I'm really struggling to get this going. Basically we have an application that uses web start. You log into the system using form based authentication in tomcat. The trouble is: web start doesn't seem to work using this authentication. It gives some error saying that the cached jnlp which internet explorer downloads temporarily, can't be found. Basically, I'd like ... |
|
Hi, Please help. I'm having a security problem when trying to list the content of a local dir from an Applet that resides in the same dir.... It was my understanding that an Applet can access the location it resides in(it's origin)??? The Code: import java.io.*; import java.applet.Applet; public class TestDir extends Applet { public void init() { File f = ... |
Making a java desktop app that will be deployed in a jar file to multiple operating systems. I want to write a file to disk so that after the user shuts the app down and then later fires it back up again I can then read the file back in from the disk. Seems like this was troublesome years ago because ... |
The webapp is located at \Tomcat\webapps\mywebapp and that directory has several subdirectories like \Tomcat\webapps\mywebapp\cache\ and \Tomcat\webapps\mywebapp\images\ and these are all protected by one global security constraint (the url-pattern is /* so everything in there is off-limits if you're not authenticated). I'm trying to figure out if there's a way to specify a directory that is an exception, meaning you could access ... |
If you really want to check for virusues, you can delegate to the host machine for this. If the server your servlet container is on has an on access virus scanner, it is easy enough to persist the uploaded file to disk then read it back. If the virus scanner quarentines the file, you will not be able to read it. ... |
I am using Drools to build an Eclipse-based RCP application. I have placed the Drools components and their dependencies into a plugin which is deployed as a jar file, and the RCP application successfully runs (with only one or two rules). Now I am trying to simply setup JUnit tests, and am crashing and burning with a java.lang.SecurityException. Here is the ... |
I am using REALM and used /* and it made entire application secure. I want to make particular directory secure and not the whole application eg. webapps/magic magic contains folders abc , xyz etc and I want to give access to xyz to tomcat users and abc accessible to admin users How to do this Plesae HELP PLEASE PLEASE HELP 12/jan2007 ... |
* I have tried as per the rules in the following website and modified like that website says, http://java.sun.com/docs/books/tutorial/security/tour1/wstep2.html * But still i am getting same Security Exception........ Why that??? * Why it is not running in IE browser???? My APPLET Code : import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.applet.*; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintStream; public class AppletExample extends ... |
checkPermission Line no:-1 java.security.AccessController.checkPermission(Unknown Source) java.security.AccessControlException: access denied (java.io.FilePermission jint egra.log write) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkWrite(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at com.linar.jintegra.Log.logImmediately(Unknown Source) at bis.opencontrol.opcconnector.CheckOPCServerOne.checkThisOPCServerAtTh isIPaddress(CheckOPCServerOne.java:74) at bis.opencontrol.opcconnector.CheckOPCServerOne.run(CheckOPCServerOne. java:57) at java.lang.Thread.run(Unknown Source) at com.mysql.jdbc.Connection.(Connection.java:716) Feb 07,2009 8:12:51:212 PM|bis.opencontrol.opcconnector.CheckOPCServerOne.class( 120)|Thread-12| checkPermission Line no:-1 java.lang.SecurityManager.checkPermis sion(Unknown Source) java.security.AccessControlException: access denied (java.io.FilePermission jint egra.log ... |