668 byte By
LieblA at 2007-9-26 1:15:58
hi everybody,I'm trying to get CODEBASE PRINCIPALS running in Netscape 4.72, as I want to accessan applet from a client application over TCP.I've added the Line:user_pref("signed.applets.codebase_principal_support",true);in the prefs.js file.In the applet I use the ...
Recently I search the forums for a way to get a MD5 Hash of a String. Unfortunantly, there was nothing here to help.I did, however, find this site on the web: http://users.rcn.com/danadler/javacom/MD5Hash.txtThe only thing is Dan Adler's code uses the older md5 class from sun. I have modified ...
1204 byte By
6tr6tr at 2007-9-26 1:25:42
I have made a class EJBPolicy that extends java.security.Policy (i'm using jdk1.4), and overrides the abstract methods. Then in my java.home folder, I changed the file "java.security" so the property "policy.provider" now reads "EJBPolicy". I also changed the "java.security" file in my ...
1204 byte By
6tr6tr at 2007-9-26 1:25:43
I have made a class EJBPolicy that extends java.security.Policy (i'm using jdk1.4), and overrides the abstract methods. Then in my java.home folder, I changed the file "java.security" so the property "policy.provider" now reads "EJBPolicy". I also changed the "java.security" file in my ...
203 byte By
makarla at 2007-9-26 1:34:51
with Java plugin 1.2.2, could not install my policy file on a windows 2000 server.but the same install program works well on a NT 4.0 server..is there any workaround for this?
Does anyone know if there is a crypto provider for the "zip 2.0" format? I believe "Zip 2.0" is the format used by WinZip. I need to produce encrypted zip files which can be opened by WinZip.Ravi
690 byte By
jake39 at 2007-9-26 1:47:08
I am not new to java but am new to servlets and I haven't managed to find an answer to this:All I want to do is when the session expires set the Authorization I receive fron the browser to null. At the moment I can send back an SC_UNAUTHORIZED and thow up the login box but if the user just ...
Hello,have someone the original code PolicyFile.java and PolicyParser.java from the JAAS?The compiled class are in com.sun.security.auth , but I need the uncompiledclass in java source. I would like to make my own MyPolicyFile-Class for the JAAS.I need a custom Policy Class for the JAAS.So, ...
1964 byte By
jpilgrim at 2007-9-26 1:51:09
Hello,I'm evaluating J2EE and JAAS and I'm wondering how I can implement my business model using these techniques:As far as I understand JAAS, it's a class based authorization architecture. What I need is an object based architecture, specially when using CMP entity beans.Is it possible to ...
1350 byte By
rguiu at 2007-9-26 1:57:02
Hello, Anyone with experience with policy files?I have this ibn a policy file. I load it using the property : -Djava.security.auth.login.config=D:\pathh\...\raul_jaas.cfg And in the policy file is:grant Principal NTUserPrincipal "my_user_name" { permission com.mycomp.raul.RaulPermission ...
312 byte By
Unoft at 2007-9-26 1:57:28
Hello, I want to use my own Policy-Class wich is derivated from java.security.Policy. So I changed the policy.provider entry in the java.security file but the programs further on use the sun.security.provider.PolicyFile file.Does anybody know why?Greetings, Sebastian... ...
I would like to know if it is possible to use form-based or basic login authentication in the web tier, and then be able to easily propogate that security context in JNDI to creating protected EJBs. My understanding is that if using form-based login on the web tier, the container will ...
821 byte By
aleather at 2007-9-26 2:08:56
Hi,We are using both ADO and JDBC to connect to an Oracle database and my job is to make sure that the connect password that travels to the Oracle database is encrypted and not traveling in clear text. How do I encrypt this password before sending to the Oracle database? I think Oracle looks in ...
1643 byte By
gariosg at 2007-9-26 2:11:42
Hi guys, well I have this problem, I have an JApplet that's a RMI client in the machine A and my RMI server is in the B machine, so I get security exceptions like these:Client exception: checkconnect.networkhost1sun.applet.AppletSecurityException: checkconnect.networkhost1at ...
Will there be more root certificates from CAs in Java 1.4? The current situation is not good. There is nearly no other choice than Thawte. A monopoly is not good.Currently I have a certificate from www.trustcenter.de. It works perfectly to sign JARs for NS 4.x and CABs for MSIE 5.x. But it ...
3440 byte By
ventural at 2007-9-26 2:14:13
Hello!I am an italian student who is attending computer science at Pisa University.I am developing a project and I have the following problem.I have written an applet that import the following libraries with the statements:import java.io.*;import java.net.URL;import java.net.*;import ...
java.net.ConnectException: Connection refused: connectI do not know why I get this because I have done something very similer before.... I have made a connection with sockets to a machine other then localhost but this time it seems not to want to let me. Maybe I do not have the correct security ...
I want to authenicate a user within an intranet, using servletsso the user adds his/her username and password and these will be checked with the System usernames/passwords to retrieve the users privilagesHow do I do this ?Can I use HTTPS: ?thanksSimon ...
976 byte By
miziop at 2007-9-26 2:30:26
Hi all.A little question: I know that an applet can't read and writefiles on pc but an applet can read a file on a server?I have this statements:( fileNameParam = //WEBGNI/pc_Pignotti/psj.rtf )JTextPane1.setContentType("text/rtf");try {java.net.URL url = ...
865 byte By
6tr6tr at 2007-9-26 2:35:19
I know how to get the permissions from a Policy: MyPolicy.getPermissions()How do i get the Principals and Permissions?If I have:grant MyPrincipalClass "Jeff" { permission MyPerm "doIt"}how do I then (in my code) get both the permission and the Principal?I am currently doing ...
how I can write a files from browser.
We have some content that we would like to protect that is accessible directly from a Web Server without going through an App Server.The App Server handles authentication using forms for most of the site, but we also have assets, hosted by the Web Server, that we would like only authenticated ...
554 byte By
axelleA at 2007-9-26 2:44:57
Hello all,I'm trying to write a generated RSAPublicKey and RSAPrivateKey to a file, and then, later retrieve them.I thought I could use ObjectInput/OutputStream to do that, but when I do so I get the exception java.io.NotSerializableException: java.io.ObjectOutputStream(I'm surprised, because ...
Hi!I am trying to run a swing applet that needs to be able to connect to outside servers using socket connections. I got this working using the plug-in, but would much rather get it working without the plug-in.I successfully jarred up the swing files that I need, and I think I am ok in that ...
467 byte By
husayt at 2007-9-26 2:51:23
Hello all.I am making Intranet Login module, which should let the user in if he already logged in Nt and ask user/pass if not. It should be working from browser. I am trying to use JAAS. But I don't know is there any way to use JAAS from applet, since applications are not runnable on ...
Hi,I am not sure whether all the 5 login modules come with jaas_1.0 or jdk1.4?Thanks,Burt
796 byte By
spieler at 2007-9-26 3:05:46
Hi I'm trying to use JAAS 1.0In order to check if JAAS is active/workingI try to get it's policy:javax.security.auth.Policy.getPolicy() But I get the following exception:java.lang.SecurityException: unable to instantiate Subject-based policyat ...
174 byte By
rameswar at 2007-9-26 3:09:26
Hi ,Could you please tell me how to read computer's MAC Address using Java programme.its urgent ! Thanks ramesh
We want to purchase a maximum strength Server Certificate. To purchase one from Verisign, it is required that we provide the name of the Server Software provider upon which the Certificate will reside. There are only options for the servers from recognized brand names - nothing like "Other ...
HI ALLcan anyone tell me the difference b/w private key and public key used in encryption alg.for eg. in encryptiion file system of windows 2000private & public keys are made use of.thanksbelur
How can we create binary Jar file in order to hide the code from the client?Note : The .xml and .html files are accessable /understandable in Jar file. I need somehow hidden this codes when deploy it. Or a way to prevent from opening the Jar file.Thanks
How can we create binary Jar file in order to hide the code from the client?Note that: The .xml and .html files are accessible/understandable in Jar file. I need somehow hidden this codes when deploy it. Or a way to prevent from opening the Jar file.
Pleasecan someone tell me how can I modify java policy file in order to connect jdbc-odbc;I could not run an applet program which should retrieve a data stored in Micrsoft-access.I am just receiving an java security exception "Access denied"thanks
whats the best way to secure web pages on a web site.if the users are given user name and password and are required to autheticate before accessing the information on the secured pages
314 byte By
rkgeet at 2007-9-26 3:42:29
Hi everybody and Sun's member,From the command line we can install security manager as follows :java -Djava.security.manager - Djava.security.policy=myPolicy is it possible to install security manager and policy file by our program. Sugestion pliz.RegardsGt ...
Please can naybody help me out...I have one script called digest on linux when i am passing input "bharat" to it it's giving me output : "37V7Ll82wfiT28Et1miX1A==".When i am passing that same string to my java digest class it's giv9*** me output: "[B@3ac748".Since i have to store that ...
341 byte By
kfsong at 2007-9-26 3:55:09
Hi, guys,I have to modify the java.policy file before I run my applet for the first time.How can I grant permissions from within my code ratherthan manually editing the file (I don't want the client to do anything other than run my applet).Anybody can help? Thank you in advance.Janet ...
341 byte By
kfsong at 2007-9-26 3:55:22
Hi, guys,I have to modify the java.policy file before I run my applet for the first time.How can I grant permissions from within my code ratherthan manually editing the file (I don't want the client to do anything other than run my applet).Anybody can help? Thank you in advance.Janet ...
15498 byte By
avbentem at 2007-9-26 3:55:46
Hello all,the steps and code samples below (well known to you) work fine for a VeriSign Personal Digital Id trial and a GlobalSign PersonalSign demo certificate. However:1) how can I make Tomcat or JSSE use both my default keystore and the cacerts file?The VeriSign class 1 root is in this ...
Hi,I got one problem after running one program.Please anyone can help me?Thanks,RegardsDineshjava.lang.SecurityException: sealing violationat java.net.URLClassLoader.defineClass(URLClassLoader.java:234)at java.net.URLClassLoader.access$100(URLClassLoader.java:56)at ...
Hi,I am very new to J2EE and have just started out with WebLogic security. I have one question that I couln't get answered in any weblogic doc's. How is principal(user) identity propogation handled throught weblogic. Lets say for instance I log in as some user in the server from a servlet, ...
649 byte By
mjossan at 2007-9-26 4:04:33
First I was having problem on how can I send a userid and password for proxy authentication while trying to connect to a servlet from a applet, finally I figured out that I need to add Authenticator asAuthenticator.setDefault(new MyAuthenticator()); and everything started working fine but only ...
584 byte By
eseglo at 2007-9-26 4:05:05
I have developed a Resource Adapter and deployed it in the Suns app server (J2EE 1.3), but this connector uses some libraries that need some permissions like modifyThreadGroup. I tried to modify the server.policy file by adding:grant codeBase ...
Hi,I have just started out with EJB & weblogic security. I want to make a RDBMS realm in weblogic that connects to oracle dBase. Since I am new to security, I was wondering if anyone out there knew what fields would be added to a table that manages user?. Also how does a table manage ACLs? ...
427 byte By
pkriebel at 2007-9-26 4:24:20
A while back I installed Forte4J 2.0 on Win2000/Pro using JDK1.3...after 'updating' a Forte4J JAR file (or two), I went to launch the IDE and received a SEALING VIOLATION error. My bad. Now, when I go to re-install Forte (or install 3.0), no matter what I do, I receive the Sealing Violation ...
374 byte By
carrots at 2007-9-26 4:28:14
HiWhen we access the weblogic's console (eg. http://localhost:7001/console) , a "pop-up" alert asking for username/password will be shown. Is it possible to implement the same security control for my .war file ? ... so that when the user access my index.jsp, i can ask for the username and ...
514 byte By
saira812 at 2007-9-26 4:28:15
Hi,How can i use JAAS in my web applications or for a website? All I need is how can i facilitate the JAAS technology to improve my website access control like for example Web-based admin module can b accessed by various type of users with different access rights.. How can i incorporate ...
2467 byte By
eeverman at 2007-9-26 4:33:56
I have written an applet that attemps to contact a cgion its server. While an applet *should* be allowed tocontact its own server, mine throws some sort of securityexception.Does anyone have any ideas of what could be causing this?I've tried this on Netscape 6, IE 5, and HotJava 3- allgive ...
306 byte By
6tr6tr at 2007-9-26 4:34:38
I use -Djava.security.Manager when running the test app and then call:java.lang.SecurityManager sm = System.getSecurityManager();System.out.println(sm == null); It always prints true! Why? How do I make the SecurityManager not null? ...
306 byte By
6tr6tr at 2007-9-26 4:34:39
I use -Djava.security.Manager when running the test app and then call:java.lang.SecurityManager sm = System.getSecurityManager();System.out.println(sm == null); It always prints true! Why? How do I make the SecurityManager not null? ...