Issues with security warning popups in JRE1.5.0_06

1575 byte By thomasn_noa at 2007-10-2 8:52:11
UsingJava Plug-in 1.5.0_06Using JRE version 1.5.0_06 Java HotSpot(TM) Client VMBrowser is Internet Explorer 6.0.2800.1106Background:Our web application has 3 different applets on one page, transmitted using https. Due to a variety of factors, the name of the host does not match the name on the ...

User Authentication for Web Services

741 byte By mysdnida at 2007-10-2 8:57:34
Hi,I am developing a web services that resides in Intranet.Thus, would like to implement application layer of user authetication, i.e. to match the input user name and password against Database record through a web service logon() method. If authentication is passed, the client program is ...

urgent ......help

329 byte By kaushik15a at 2007-10-2 8:59:03
Hi all,Can we send jar and jad file via bluetooth from one mobile phone to another....If yes plz help..otherwise plz pls send me link which is proof that we can not send jar and jad file via bluetooth from one mobile phonetp other....Are there any securtiy issues or some other issuesrgdskapil ...

Expose J2EE class's path on the server to the client

243 byte By LianLiminga at 2007-10-2 9:05:49
Hi all,I am new to J2EE. I wonder what security problems will be caused if exposing the class's path on the web server to the client. For example, I use "com.example.test" in the url of a form's action.Thanks in advance.

javakey tool?

202 byte By happydaya at 2007-10-2 9:10:16
hi frns,i want to create a licensekey to my jar file.as far as i know javakey tool is used for creating keys.but i want in detail code how to create keys...reply urgentthanku

keytool doesn't use system-wide keystore for trust chain ?

3269 byte By Lion-Oa at 2007-10-2 9:10:33
Hi there,I recently dived onto the Java train and so far like every bit of it, last week I managed to complete my first "homework project" (a commandline calculator which basicly picks up 2 numbers and then performs the 4 major operations on them) and now I'm studying deployment. During this I ...

FTP and SOCKS (JDK1.3)

353 byte By kthunoa at 2007-10-2 9:14:52
I have recently been assigned to a project which requires a ftp data connection through a SOCKS firewall. From what I found out so far it has native support in the JDK, but I am uncertain if this applies to 1.3 as well, since that's the version I have to use.Anyone familiar with a solution to ...

JASS: problems with authorization in web application

1026 byte By efratba at 2007-10-2 9:15:01
Hi, I'm trying to write a web application (JSF, servlets, EJB's), using JAAS.When I use the DatabaseServerLoginModule the authentication & authorization works fine.When I use my own Login Module (extends from AbstractServerLoginModule) the authentication works fine, but I have problems ...

Possible security issue question

1042 byte By JoeyHeinricha at 2007-10-2 9:17:06
I've never used any of the Java security packages, but I'm hopnig there is something out there that can help me out with what I'm needing and that someone might be able to direct me to it.I have a large scale application which uses an independent config file. The config file has the complete ...

Java Security Model: Java Protection Domains

11984 byte By DineshVishwakarmaa at 2007-10-2 9:19:37
1.Policy ConfigurationUntil now, security policy was hard-coded in the security manager used by Java applications. This gives us the effective but rigid Java sandbox for applets.A major enhancement to the Java sandbox is the separation of policy from mechanism. Policy is now expressed in a ...

JAAS config file in jar root through webstart

703 byte By MisterFlibblea at 2007-10-2 9:23:21
I'm tring to put my jaas.config file in my application's jar that is downloaded through webstart because I don't want to have the file on the server anymore.I keep getting a security exception saying it cannot locate the file. What is the correct syntax to specify that the jaas config file ...

How to export and import private key for signing.. urgent

1439 byte By balajigovindana at 2007-10-2 9:31:40
Hey guys,i have a web start application.The jar file distrbibutes is signedThe following are the steps i have used for gen the certFollowing are the steps I have used for generating the certificatekeytool -genkey -alias abcdEnter keystore password: passwdWhat is your first and last name? ...

Source for sunpkcs11

136 byte By crisbarrantesa at 2007-10-2 9:37:55
Hi,do yo know where to get source for sunpkcs11.jar? Library is included in java 1.5 but not src.Thanks,Cris

How to insert API into NetBeans

293 byte By Ar_Lynza at 2007-10-2 9:44:50
Hello, i'm in the middle of doing my project using NetBeans as the platform. the problem is i don't know how to put JSAPI and JavaMail API package into my list of library in NetBeans.So, i hope somebody can give me a guide so that i can proceed with my project... thank you very much.

Integrating Java with Fingerprint

364 byte By Zulaiqhaa at 2007-10-2 9:46:10
Hello...I need some info and tools for what i need to integrate the Java Applet with a serial fingerprint devices and what sort of database is needed in this project development.The concept is for library access to verify the user using the fingerprint and save the record on the database. Im ...

Simple Data encryption

419 byte By keyan01a at 2007-10-2 9:53:02
HiI hope someone can help me I have a simple client server progam. The client is C++ running on windows and the server is Java. I want to encrypt data on the client send it to the server and decrypt it. Is there a simple way of doing this or do I have to have go the full monty wih key exchange ...

using different keystore at runtime

2563 byte By tom.fritza at 2007-10-2 9:53:36
Hi everybody,I have the following problem:I've written an application which is able to send different kind of requests to an https server by using the jakarta HTTPClient. For the connection you can specify the url, the keystore and the corresponding password.If you send a request for the first ...

Password Encryption

536 byte By Satyaaa at 2007-10-2 9:56:51
My application was deployed on Pramati 3.5 . I give username and password to connect to my application. We maintain the passwords in the database in encrypted format. In the current scenario we are sending the password in plain text format over network to the action file which is reponsible to ...

XSS .. ?

152 byte By Satyaaa at 2007-10-2 9:57:16
Hi .. What is XSS ... ? How we can protect web applications from XSS attacks. Explain with example. Thanks in adavane Satish

reading RSA public/private keys from keystore in jdk1.5

943 byte By dt_a at 2007-10-2 10:03:07
Hi,This one is probably easy but I'm blinded somehow. Using jdk1.5_05 with out-of-the-box providers ...

Need help understanding the <<ALLFILES>> FilePermission

719 byte By SunithaKambhampatia at 2007-10-2 10:12:46
Hello All, From the link here http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html, it says This policy file grants read, write, delete, and execute permission to all files. grant { permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete, ...

Security applications / mobile devices...

223 byte By _bensmytha at 2007-10-2 10:15:51
Has anyone had any experience deploying java.security.Signature on mobile devices (eg. a phone)? Presumably one would make use of the bouncy castle j2me BigInteger class? Any pointers? (sorry, to be so vague!)

How to implement Windows Authentication

364 byte By ddita at 2007-10-2 10:20:18
hi.........Can we do windows Authentication in core java?If not then we dont mind implementing it in J2EE. But the main thing is that we are totally new to the concept of WindowsAuthentication.So can u please guide us on this topic...........plz reply fast as we are stuck at this point in our ...

JAAS & Web based apps

242 byte By DavidThia at 2007-10-2 10:30:51
Hi;If I have a servlet running on my server, and the user accesses it from a browser running on Windows - how do I do a JAAS login so on the server I have the user's login & authentication/authorization?thanks - dave

Key invalid in messgae error (BouncyCastle Encryption)

501 byte By Redaa at 2007-10-2 10:39:45
I am trying to use bouncycastle to encrypt some data but am getting a "key invalid in message" error whenever I run it. My question is: what the hell could this mean? what could i be doing wrong. I get a feeling it's not a code issue, so what could it be?This is the actual place it falls over ...

Java Security

460 byte By Lakshmana at 2007-10-2 10:45:56
This is the first time I am posting a question so if it sounds silly please forgive me.Well my doubt is in Java code Security. In Microsoft products after a creation of project we make it one single file called exe which by decompling will not give the exact source code which we wroteBut in ...

Unable to change default Policy Implementation in JAAS

1303 byte By Thiruppathy.Ra at 2007-10-2 11:00:25
Dear All,This is regarding to change the default Policy implementaion in JAAS.We are trying to provide our own Policy implementation instead of default sun.security.provider.PolicyFile for our security appln. 1. I have created a class com.test.MyJaasPolicy by extending java.security.Policy and ...

Writing Secure JAVA Code (and testing it)

1778 byte By CFritza at 2007-10-2 11:06:31
Hi all,I'm currently looking for Information how to write Secure JAVA applications. I don't need the stuff everybody is talking about (e.g. Web App Security, SQL Injection, XSS, etc.) but instructions how to write code which is not breakable for standallone JAVA/J2EE applications. With the ...

How to access windows Username/Passeord to make an app SSO enabled?

216 byte By java1121a at 2007-10-2 11:08:55
I have created a java desktop application that runs on user machine with windows platform. I want to make this application SSO enabled. How can I read windows username and password?Please Advise.

Problem with createCredential

3340 byte By briandenga at 2007-10-2 11:09:25
I'm having a problem with the GSSManager.createCredential() method.I believe my keytab is correct as kinit -k works correctly for my SPN.However, when I attempt to call GSSManager.createCredential using my SPN I keep getting the following:GSSException: No valid credentials provided (Mechanism ...

relogin on session time out

454 byte By s@jida at 2007-10-2 11:18:37
When a user times out in an web app. he is directed to the login page. On successfully logging in he's directed to the page he requested beore he timed out.We require that the user on being timed out should be taken to the home page and not the requested page. But i want to know where the ...

No LoginModules configured

1899 byte By tonkadawga at 2007-10-2 11:21:45
I am trying to get a basic authenication sample working. In my servlet, I have the following code:LoginContext lc = null;try {lc = new LoginContext("Verify", new VerifyUserCallbackHandler());} catch (LoginException le) {System.out.println("Cannot create LoginContext. 1");System.err.println(" " ...

What is the next step after I signed my jar ?

451 byte By mangeurdefoina at 2007-10-2 11:23:10
Hello,I've signed my jar. It works but still display before this message :"The application digital is invalid. Do you want to run the application"if I say OK, it works but I would like to avoid this "not very funny" message.I know I have something more to do and related to certificates but to ...

How to bypass certificates

265 byte By lateef_shaika at 2007-10-2 11:31:11
HiI am having java standalone application which uses https protocol. From here I am contacting https server, but server is saying certificate expired. Can any body tell me how to by pass the certificate such that my application will work.Thanks

Location of JAAS policy file

612 byte By vjaya at 2007-10-2 11:33:06
I have a doubt regarding JAAS implementation.Suppose I am using JAAS for implementing a Pluggable Authentication Module for a stand alone java application (Not J2EE) and LoginModule uses native OS authenticationmechanism to authenticate users. In this case where should I keep my JAAS policy ...

Still getting Cannot create LoginContext. access denied

1041 byte By ash_mod2a at 2007-10-2 11:45:20
I'm trying tutorial of JAAS, located in http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.htmlI made a batch file as runner:set CLASSPATH=.java -Djava.security.manager -Djava.security.policy=sample.policy -Djava.security.auth.login.config=sample_jaas.config ...

Packet monitoring

153 byte By dhivisha at 2007-10-2 11:49:19
I'm trying to get the source and destination address of ip packets in java for the development of my network monitoring tool...Please help

monitor printer

141 byte By whitecoolnkcsa at 2007-10-2 11:50:24
hi,I want to get user's printer usage details from the printer queue for monitoring purpose.....can some one give me some idea

Krb5LoginModule question

481 byte By balajiua at 2007-10-2 12:00:00
Hello,I am using following config for Active Directory..AuthenticationService { com.sun.security.auth.module.Krb5LoginModule required client=TRUE debug=FALSE useTicketCache=FALSE;}When I use Universal Principle Name, the login return success, however when I use samAccountName I get login ...

SSL encryption for secure web application login

359 byte By java1121a at 2007-10-2 12:19:06
I have crated a java web application that asks the username and password and authentictes user using Kerberos Login module. In this case, the username and password are transmitted to server in clear text. So I want encrypt this communication using SSL. Can I accomplish this by using JSSE? If ...

How to decript password which is encripted by MD5

311 byte By kamlesh123a at 2007-10-2 12:21:07
Hi ,I need to decript password which is been encripted by using MD5 as follows,MessageDigest md = MessageDigest.getInstance("MD5");md.update(barray);byte[] result = md.digest();restring = asHex(result);Can anyone help me how to decript password encripted bt ...

How to make jvm to run only well known jar files on particular computer?

203 byte By yilativsa at 2007-10-2 12:21:42
Hi,How can I restrict user from running any java application on his/her computer?How to make jvm to run only well known jar files on particular computer?Regards,Vitaliy

Servlet security

120 byte By ssv45324a at 2007-10-2 12:27:40
How do i prevent hackers from invoking the servlets directly? Assuming that they know(guessed) the servlet names.

JAAS in Tomcat

2948 byte By Mohan.Ra at 2007-10-2 12:30:35
I have anabled authentication usng JAASRealm in Tomcat 5.xThe steps are1. Security constraints in web.xml - Working2. JAAS LoginModule implementation - Working because I am able to login.3. Policy file like thisgrant CodeBase " http://localhost:8080/-" Principal ...

restrictions on local Java applications

430 byte By fuzebesta at 2007-10-2 12:36:31
Hello!By java 2 security model, all local Java applications run unrestricted as trusted applications by default. but there is a note about security configuration which runs local application with access-control policies applied (similar to applet's and remote application's).But there was not ...

How to decode ASN1 data stream in Sun java?

161 byte By YellowJacketa at 2007-10-2 12:38:08
I have been searching in vain within the JSE 1.4/5.0 ways to process a byte array of data that is ASN1.1 encoded. Any help would be very much appreciated.

Unique certificate per client

1053 byte By JavaPropagatora at 2007-10-2 12:44:30
I want to write a web service in which clients will accept a certificate from the server. I want this certificate to authenticate uniquely every client. This means that every certificate will be a little different from each other (is it possible?).When the client use the service for the first ...

How to verify client application identity?

1280 byte By MD3a at 2007-10-2 12:50:11
Hello,I would appreciate some guidance from senior security people in this forum. Here is what I am trying to do:1- I am responsible for partial development of a TECHNICAL FRAMEWORK, which will end-up packaged as a signed jar file: i.e., "signedFramework.jar". 2- The purpose of the framework ...

Java RMI XML Application Security

1391 byte By Godspeeda at 2007-10-2 12:57:00
Hello, I am helping in the creation of a Java application that uses RMI to store and retrieve XML documents, including stylesheets and schemas. The security aspect of this application involves users logging onto the server. Once a user has been authenticated, they are able to view/edit specific ...

Monitoring keystrokes for user identification

993 byte By nzhedgehoggirla at 2007-10-2 13:30:38
Hi,I'm working on a project which requires me to log keystrokes (although I'm not so much interested as to building a history of key events, more of timings between them). The idea is the patterns can be used to identify a user (and log out users who are not the person who logged in).Java is ...