ACTIVATING CODEBASE PRINCIPALS

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

MD5 Hash of a String

3762 byte By lwfry@bbnow.net at 2007-9-26 1:24:19
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 ...

How set Policy.Provider to be your class?

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

How set policy.provider to be your class?

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

Unable to Install user.policy file on a Windows 2000 server.

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?

Winzip encryption

224 byte By ravisikka at 2007-9-26 1:40:37
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

Is there an easy way to invalidate authorization?

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

Looking for original Soucecode from JAAS - API (jaas.jar)

638 byte By jensreichert at 2007-9-26 1:49:53
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, ...

Object vs Class base authorization concepts with J2EE/JAAS

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

Policy files

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

java.security.Policy

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

Propogating security context to EJBs

1240 byte By james_e_lewis at 2007-9-26 2:08:51
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 ...

Encrypted password question....

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

Connecting to a different host..........

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

More root certificates in J2SE V1.4?

910 byte By ichbinich at 2007-9-26 2:13:01
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 ...

Problems loading an applet:(

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

Exception!! Please Help!

419 byte By Squall_CE at 2007-9-26 2:15:36
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 ...

servlet authentication

307 byte By simon_orange at 2007-9-26 2:21:24
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 ...

about applet

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

How do I get the Principals as well as the Permissions from Policy?

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.

51 byte By robert_lot at 2007-9-26 2:40:33
how I can write a files from browser.

Form-based and Basic Authentication

607 byte By jeffreywinter at 2007-9-26 2:41:17
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 ...

Writing and retrieving RSA keys from a file

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

NetIO Permissions in IE for JApplet

1344 byte By derekhoiem at 2007-9-26 2:49:24
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 ...

Is there any way to make work JAAS from browser.

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

JAAS login modules?

124 byte By bujinwang at 2007-9-26 3:03:15
Hi,I am not sure whether all the 5 login modules come with jaas_1.0 or jdk1.4?Thanks,Burt

jaas: unable to instantiate Subject-based policy

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

MAC (Media Access Control)Addreess, Network Card address.

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

Verisign Certificates

813 byte By etelekeli at 2007-9-26 3:11:13
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 ...

PRIVATE AND PUBLIC KEY help

269 byte By swaroopba at 2007-9-26 3:15:03
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

Binary Jar file?

281 byte By chadorbaf at 2007-9-26 3:16:44
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

Binary Jar file?

278 byte By chadorbaf at 2007-9-26 3:16:59
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.

jdbc secirity control

289 byte By sakaruye2 at 2007-9-26 3:23:43
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

securing webpages on the site with username and password

206 byte By amitsharma97 at 2007-9-26 3:37:42
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

java -Djava.security.manager -Djava.security.policy=myPolicy classfile

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

Digest in java

491 byte By bharatbhai at 2007-9-26 3:42:49
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 ...

grant permission within code

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

grant permission within code?

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

Tomcat, servlet, cacerts, client authentication and Thawte...

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

java.lang.SecurityException: sealing violation

989 byte By dinesh_singhal at 2007-9-26 3:57:04
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 ...

Principal propogation problem

829 byte By seastallon at 2007-9-26 3:57:58
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, ...

How can I pass the userId and pasword to proxy while opening the URLConnect

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

How can permissions be given to a resource adapter

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

Example of RDBMS Realm

734 byte By seastallon at 2007-9-26 4:18:47
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? ...

Sealing Exception

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

Single Signon

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

A general JAAS Question

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

Applet not allowed to contact its host

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

why is SecurityManager null?

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

why is SecurityManager 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? ...