1701 byte By
lycono at 2007-9-26 14:35:18
I tried this in the Java Programming Forum to no avail. Hopefully someone here has done this before. I am sure this has to be covered somewhere but after two days of searching I am unable to find a relatively simple answer to this.I want to gurantee that a class is one that I wrote, not one ...
1513 byte By
sbahal at 2007-9-26 14:42:03
I was trying to run the JAAS1.0 sample on win2000, jdk1.3. I have followd the steps with regard to the classpath and editing the policy files (with '/') etc. But when I run it I get this error:C:\jaas>java-classpath ...
241 byte By
peru001 at 2007-9-26 14:52:08
Can i restrict Packages used in a java program.For Eg. i a java program uses javax.swing, while runningthe program, can i restrict the program from accessingthe javax.swing package. Peru
1300 byte By
shbh at 2007-9-26 15:17:59
Hey guys , I am trying to upload file from desk application to webserver using CGI-script. I tried to use HttpURLConnections , everything works fine ...I am able to read output sent by CGI-script ...but I am not able to send file data to script.I am using POST method: URL site = new URL(url); ...
344 byte By
erdkal at 2007-9-26 15:18:28
Hi,I want to use Jaas in my Servlets. I want that the user will be authenticated, and thenwhen the user have the authorisation, who can run the servlet. The problem is, I don't find any tutorials, examples, codes to this subject.Can someone tell me any resource, or how I can realize it ?erdkal ...
1299 byte By
HemangiP at 2007-9-26 15:37:25
I am getting the following exception when I tried out the Sample application with JAAS1.0Exception in thread "main" java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.security.SecurityPermission getProperty.combiner.provider)at ...
941 byte By
bradmcc at 2007-9-26 15:38:11
I have a servlet that gets a user id and passwordand query information from an HTML formand then writes back the answer to the query as a new web page. We want to make the transaction secure because it is customer confidential information.What do I need to do in my servlet to get it to run ...
402 byte By
nemov at 2007-9-26 15:50:49
Hi,I generated a private key with openssl as follows:openssl genrsa -des3 -out server.key 1024 I would like to have that private key stored in a Java KeyStore, but i don't find the way of doing it.I've seen lots of unreplied topics about this subject, so, does that mean that it is ...
198 byte By
petertg at 2007-9-26 16:03:15
I am getting java.lang.ClassCastException: iaik.asn1.structures.Name when trying to get a resource from a jarCan't figure out what is wrong with it.Thank you in advance.
299 byte By
nort_de at 2007-9-26 16:04:05
Hi,i have run some JAAS examples and had written one as an application. I want to run it now as a web-application. How do I set the:java .... -Djava.security.Manager -Djava.security.....for the server? Pleas set as CC -> nort@nort.dethank youjuraj
1444 byte By
mweitz at 2007-9-26 16:18:19
I've added logic to my application to use certificates. When I logon, I am asked for a certificate, I select one and then continue on to my application.The logic uses this code I got from someone else on the project.weblogic.security.X509 certChain [] = (weblogic.security.X509 []) ...
387 byte By
vea1 at 2007-9-26 16:20:18
When I try to run an applet the folowing error occurs.java.security.AccessControlException: access denied (java.net.SocketPermission sosib01 resolve)Can anyone help me out with this problem.I read something about a java.policy file but can anyone tell me how to check which file is used because ...
913 byte By
nort_de at 2007-9-26 16:22:42
Hi,i am trying to run JAAS in J2EE as a servlet or bean. I have tried the examples and experimented some time and it is running fine with all authorization & authentification possibilities. But when want to run the Sample as a webapp i get some problems. I get a java.lang.SecurityException ...
190 byte By
nkdas1 at 2007-9-26 16:28:42
Hi,Can anyone tell me how do I set file read or write permission for a group from an application.Thanks & wish you all a very happy new year.nkd
Hello,Can any one help me?The stituation is like that:when a client gets an applet from web server through web browser. Then, the applet will read the files in the client side hard-disk and display the data in the files to the applet. How can I do it?Is Java support to read/write file locally ...
I HAVE THE PERMISION FILE "myfile.police"IN C:\INETPUB\WWWROOT-grant codeBase " http://localhost/directory/" { permission java.security.AllPermission;};-AND THE APPLET CODE --......public void init() {//how use here the file "myfile.police" ?// who its the code ?} ......-- Thanks in advance. ...
1966 byte By
orsh at 2007-9-26 16:38:33
Hi,we use an applet that loads dynamic content from a JSP-pagewe have the j2re 1.3.1.02 installedwe use a windows NT server with IBM websphere web application server, it is an intranet solutionso a user authentification is necessary for accessing the application running on webspherebut when the ...
Does somebody know how one can redefine these properties? After setting the properties with a wrong host name and getting an error during the following steps urlConnection = new URL(serverUrl).openConnection(); urlConnection.setDoOutput(true); urlConnection.setDoInput(true); ...
I'm a novice java programming with very little formal programming training. I've pieced together enough knowledge to do what I've wanted to do so far...However, I've been unable to figure out how to read and write to a text file from an Applet (I can do it from a normal java program just ...
277 byte By
ronsun at 2007-9-26 16:48:39
hello everybody!Now, there are a lots of software can decompile .class to .java(like jad). I want to know if there are some software can protect my .class file and please tell me where can i download such software, thanks!my E-mail: ronsun@etang.com
333 byte By
hari at 2007-9-26 16:48:47
Hai !!This is hari.Ii have some doubts regarding some concepts in security.1) In Public Key Infrastructure how the key exchange will happen among the partnera.2) What is the use of Session key in the PKI3) Security Tokens Plese send the relevent information in regards of above ...
4261 byte By
sagarb at 2007-9-26 16:50:39
Hi,I need help. The thing I'm trying to do is try to write to a new file at the start up up of the servlet. This thing is working in the JBoss server and Tomcat server. But, when I'm trying to do the samething in the J2EE RI Server, it fails trhowing the "AccessControlException" as mentioned ...
150 byte By
toshck at 2007-9-26 16:56:00
does keytool generate the same set of keysfor the same input at different times?How do I view the keys generated this way?
610 byte By
canhuiou at 2007-9-26 17:03:58
Hi Gurus,Wondering how to let servlet write local disk (server side)? Servlet is running as nobody (I guess?) So I set the owner of the directory as nobody. The servlet can create directory or files, but it can't write stuff to the files it created.I have the following code piece in the ...
Hi all,I am using java at client side to contact http server( server in php). How can i handle SSL using http java clint?Can i have a clue in this regard?Thank you,Suresh.
179 byte By
susmak at 2007-9-26 17:10:18
Hi,What is the diff betw Authentication and Authorization.What are the diff to provide Authentication in Websphere.Please help me.Thanks.
217 byte By
rwakida at 2007-9-26 17:11:48
Hi,My application must allow a user to create a new principal and specify permissions dynamically. Is there a way to declare a principal and it's permissions at runtime? thanks,Reid
724 byte By
trey at 2007-9-26 17:15:56
I have an existing certificate (public/private keypair) that I'm using in Microsoft IIS. Using Cert Manager in Windows2000 I export the certificate preserving the private key into a pfx file. I need to import the public/private keypair into the keystore. I also have the original certificate ...
Hi everybody,My project is to send the data from the intrnet to the java controller (PC) through the web server.The webserver and java contoller have LAN connection(Intranet)the IP add for java controller(PC) is 90.0.0.2 When i control the applet from the internet, i found the following error. ...
Hi everybody,My project is to send the data from the intrnet to the java controller (PC) through the web server.The webserver and java contoller have LAN connection(Intranet)the IP add for java controller(PC) is 90.0.0.2 When i control the applet from the internet, i found the following error. ...
Can someone point me towards a document on how to get JAAS to work via Windows' Kerberos?
328 byte By
scee at 2007-9-26 17:34:06
I have seen examples that requirecom.sun.security.auth.callback.*. Specifically, documentation that states that DialogCallbackHandler is a part of that package. But in the JAAS that I downloaded this morning there was no com.sun.security.auth.callback.*, only javax.security.auth.callback.* sce ...
In my applet the following code ( from init() ) throws an exception: Access denied....Image img = getImage(getCodeBase(), "pic.gif");images = img;mediaTracker.addImage(img, 0);...Fine - but this code section doesn't:...try{SecurityManager sec = System.getSecurityManager();String str = ...
2421 byte By
servzone at 2007-9-26 17:40:19
There appears to be a bug in the JAAS api involved in sub-classing the Configuration class. By default LoginContext uses the default implementation of Configuration (ConfigFile) to load modules and parameters. Each login module is then initalized when the login method of LoginContext is called. ...
718 byte By
akadambi at 2007-9-26 17:41:54
Hello,I am trying to run a Java Magician (Java implementation of OpenGL) program which displays a simple tetrahedron. The program runs fine on the console. But when I try to launch the program as an applet by typing% appletviewer showtetapplet.classI get the following error ...
739 byte By
gambier at 2007-9-26 17:43:01
I am trying to pass some options from my jaas.conf to a login module I have written. I've written the conf file as followsother{MyLoginModule required auth_server=foo.company.com;};but when I try to run with this conf file, I get fhe following exception:java.lang.SecurityException: ...
Hi all,This post is concerned with whether it is possible for an applet to use the jce.jar file and bouncycastle.jar files so it can perform assymetric encryption using the algorithims they provide.For an application its possible to place them in the lib/ext/ dir of the JRE, or place them on ...
1506 byte By
solleti at 2007-9-26 17:50:02
Hi I have an implementation of apache 1.3.20 with tomcat 3.2.3. I an doing auth. with a ldap server wihich works prefectly with apache mod_auth_ldap (module). When i am trying to read the environment variables with a cgi , REMOTE_USER returns me the authentificated user but when i am doing a ...
353 byte By
jess at 2007-9-26 17:51:57
hey..anyone can teach mi how to retrieve a value on a cert?i need the values in order for user to login to the system.For example:i need to know the common name of a cert so that i can authorize a user with the correspondance or valid cert can succefully login to the system.anyone can help mi ...
664 byte By
laslos at 2007-9-26 17:52:51
Im trying to get a grip about the security model for J2EE applications.Today im working on a webapplication where I want to be able to restrict resources via declaritve or programatically access to any resource defined (files, webpages, methods.) We use a LDAP directory for authentication ...
876 byte By
cavey79 at 2007-9-26 18:01:06
I want to use the bouncycastle JCE provider as a bundled extension.I can add the provider(Security.getProviders() also includes BC) but when requesting an algorithm from this provider,I get an NoSuchAlgorithmException(actually it is found but "the signer for ..$IDEA is different from the signer ...
HelloI am running WLS 6.1 (latest service pack), with the packaged J2SDK(1.3.1) that comes shipped with it, using OpenLDAP as an alternate security realm, and I'veconfigured mutual authentication to use my OpenSSL generated client andserver certificates. This is all working fine. I have a ...
Hi all,I want to use Java Applet to write a PDF file into the client's computer when he/she double click the URL in browser. Can I do that and HOW. I heard that i need to signed the applet and make security manager enable, but how to do it? After that, can I read it using Applet from client's ...
I am trying to configure the java.security file to point to a policy file via a URL. I have set the following line up in the client java.security filepolicy.url.2= http://a.b.c/MyPolicy.policyand am getting the following error when the applet is launchederror parsing ...
Hi,I am new to JAAS and trying to use the UnixLoginModule/NTLoginModule to authenticate a user who provides the user/password in my application. I haven't seen a proper example for the same. Would appreciate if someone can provide a little sample specifically for ...
I have a signed applet using JRE 1.3.1 that uploads and downloads files. What do I use to read a browser's cert and use it's private key to sign a file before uploading it?I'd like to use my applet in IE5.5 and NS6, is there an api that will help and has anyone done this before.I imagine I ...
Hello,on this page : http://java.sun.com/j2se/1.4/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html#RunActhere is a tutorial to use JAAS.I made all that is indicated and the first part works. But the 2nd part doesn't (Running the Code with a Security Manager).When I execute what it is ...
1518 byte By
dustpan at 2007-9-26 18:27:09
How do I set the Security correctly so I can use appletviewer, and not get this message?C:\temp\TestPhoto>appletviewer PhotoUploader.htmla java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)at ...
Hi all,If I have a PDF file on the web server, can I use the Java language to read the PDF file from the URL and then save it as a local PDF file? I doubt the "InpuStream", "OutputStream" and "PrintWriter" can handle the non-ASCII datastream like PDF, cause it return this error message to me ...
238 byte By
ASDog at 2007-9-26 18:31:59
Is it possible for the host user to make a directory available for use by applets ? For example if they want to use an applet on line which makes information they want to keep, so they allow it to access an empty directory.