Security « Development « Java I/O Q&A





1. How do I connect to a IBM 3770 Remote Job Entry system for Customs Border Patrol 10+2 Security Filing from Java?    stackoverflow.com

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 ...

2. how to securely delete files in java    stackoverflow.com

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 ...

3. Allow logout while multiple large files are uploaded    stackoverflow.com

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. ...

4. Get NTFS file security info using Java or C++    stackoverflow.com

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 ...

5. Is using AD credentials entered into form fields as opposed to the browser integrated auth window bad practice?    stackoverflow.com

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 ...

6. java security manager    stackoverflow.com

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)
  ...

7. JAVA:open file with different credentials    stackoverflow.com

Is it possible to access a file (read/write/delete/move...) using different credentials then the one the logged in user?

8. java.security file in ANT    stackoverflow.com

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 ...

9. What permissions must be granted for applets to write temporary files?    stackoverflow.com

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 ...





10. Self-referencing MD5 file    stackoverflow.com

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 ...

11. Problems with pkcs7 file validation    stackoverflow.com

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 ...

12. java.security.KeyStore shows only one of two certs in a p12 file    stackoverflow.com

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 ...

13. Directory traversal security issue    stackoverflow.com

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 ...

14. Signed applet loads signed jar-files using URLClassLoader with security issue    stackoverflow.com

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 ...

15. How to get the java.security.PrivateKey object from RSA Privatekey.pem (from a file)?    stackoverflow.com

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 : ...

16. how to implement file distribution using reed solomon erasure coding & vander monde matrix    stackoverflow.com

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 ...





17. Prevent signed applet from deleting files on local file system    stackoverflow.com

Is it possible to prevent a signed applet from deleting files on the user's local machine?

18. Java Applet File Permission Errors    stackoverflow.com

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 ...

19. Webstart and directory security    coderanch.com

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 ...

20. how to set security file    coderanch.com

21. Security problem with File list()    coderanch.com

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 = ...

22. security restrictions of file I/O?    coderanch.com

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 ...

23. turn off security constraint for a directory    coderanch.com

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 ...

24. Security : Validating File Upload    coderanch.com

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. ...

25. Security Exception: signature file    coderanch.com

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 ...

26. REALM Individual directory wise security    forums.oracle.com

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 ...

27. java.security.AccessControlException: access denied (java.io.FilePermission    forums.oracle.com

* 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 ...

28. Please help, I have a java.security.AccessCon java.io.FilePermission error.    forums.oracle.com

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 ...