Loading KeyStore acts differently on Mac JDK and Windows JDK

5250 byte By wb138834a at 2007-11-27 11:51:12
Our company has been required to integrate with a 3rd party vendor which requires 'client authentication' to their server using a Digital ID certificate (Class I). After purchasing our Digital ID from Verisign (which is installed in Firefox), we export the certificate to a PKCS12 format (which ...

Unique system identifier

363 byte By anonymousfua at 2007-11-27 11:44:25
My company is developing a licensing system that requires the generation of a unique system identifier. This would be used, for example, to restrict an application to run only on a particular machine.We already have a native library that generates these system IDs, but we want to implement a Java ...

How to control logined user

325 byte By john_woo_canadaa at 2007-11-27 11:20:07
Hi,Using JAAS login model is fine for my swing app. But now there is a requirement, such that we need to create a web, by which all logined user can be monitored, and even forced to logout.Can any one have idea, so1. how to know who logined?2. how to login user ...

How to verify jar entity certificate?

2754 byte By x4444a at 2007-11-27 10:49:31
If I ask for Certificates[] method JarEntity.getCertificates() returns null.How to get JarEntity certificates?JarInputStream jar = null;try {jar = new JarInputStream(new FileInputStream("e:/out/p1.jar"));JarEntry je = null;while ((je = jar.getNextJarEntry()) != null) ...

Question regarding SSHExec.FileAttributes

572 byte By jmc95825a at 2007-11-27 10:34:13
Is there anyone out there that is familiar with SSHExec.FileAttributes? All I want to do is set the mtime file attribute for a file I plan to ftp. The documentation for SSHExec.FileAttirbutes states that mtime requires an int.Ok, easy enough. But I want to pass it a timestamp that will the date as ...

Pulling data from a website which is protected by certificate which I have!

853 byte By ckrulza at 2007-11-27 10:31:46
Can anyone let me know how to read data from a web page that is protected by a certificate. I do have the certificate. So can anyone breakdown the process for me as to how should my program go about this task.I usually get data from password protected websites. And now I have this whole list of ...

WEB CLIENT LOGIN MODULE

246 byte By ROBERTNASH2007a at 2007-11-27 10:29:10
<p>Hi everyone!</p><p>I'm trying to come up with a web based login module for a web based booking and ticketing system. Please anyone who has an idea please help me out. Please include your proposed code. your help will be highly appreciated</p>

XSS cross site scripting attack prevention

518 byte By zada_bha at 2007-11-27 10:20:40
hi all,first, i don't know if this question should be posted in this forum. If not, please let me know.i'm trying to find a solution for this issue. I've searched but couldn't find a clear answer about preventing from XSS in websphere 5.0.another question is if we use the filtering and encoding ...

Certificate Authority and server certitifcate .

242 byte By dynamicdhiraja at 2007-11-27 10:04:04
Friends, I wish to create a Self signed certificate (CA ) and a server certificate using java . Can anybody please help me or guide me to a relevant document ? Thnaks in advance .regards,Dhiraj Shetty

JAAS Tomcat

795 byte By nantucketa at 2007-11-27 9:58:53
I've implemented JAAS with Tomcat because I'd like to both authenticate as well as authorize users of the web app. Currently, I have created a jaas.conf file which is located in the conf directory of Tomcat. However, I'd like to be able to make the authentication/authorization process ...

Username and Password encryption

634 byte By hetal_giria at 2007-11-27 9:55:36
Hi everyone,I have application where in i m connecting to DB at present i m hardcoding username n password to the DB.But recently i read abt JCE for encrpyting secure data i tired to implement it n it works fine but again the data tht has to b encrypted is present in the code....then i read abt ...

Sun fingerprint database

329 byte By jsp1999a at 2007-11-27 9:46:53
Hi,does anybody know whether the Sun fingerprint database is available for download (I mean the whole thing)? This would make analysis much easier!Bittorrent would be one way of distributing this data in an efficient way.Please mail me at jsp199 at gmx.de if you have further ...

login module

678 byte By Sunneke31a at 2007-11-27 9:37:48
hi,i have a jsf webapplication that runs fine now my task is to do the authorization of users through active directory. but first of all, i have to force the webapplication to show a login module. (best is to show users a standard Internet Explorer Login popup). but i have no idea how to write ...

JRE version that fix Java Web Start vulnerabilty

365 byte By kenshiro2000a at 2007-11-27 9:32:46
Hi to all,I see this security post: http://www.frsirt.com/english/advisories/2007/2384"Sun Java Web Start Arbitrary File Overwrite and Command Execution Vulnerability"How can I understand if the JRE 1.5.12 fix this security bug?I have seen on the release notes but I have not seen any reference ...

Applets: Why the difference in java.version vs. java.runtime.version

1494 byte By naansofta at 2007-11-27 9:30:18
I wonder why this is so:Given the following simple applet code running as untrusted:import java.applet.*;import java.awt.*;public class testVersion extends Applet { public void init() {try {this.add( new Label( "Version: "+System.getProperty( "java.runtime.version" ) ) );}catch ...

XML DSig, signing with external keys

1270 byte By artoha at 2007-11-27 9:29:37
Hello,is there any way how I can use the the new XML DSig APIs in Java 6 to sign an XML document using an external key -- that is, a key that is not available as a Java PrivateKey object?What I am trying to do is to use a private key stored on a smart card to sign an XML document. The key being ...

CERTIFICATE_UNKNOWN

6380 byte By kalyanakumara at 2007-11-27 9:28:53
My project requirement is like this:1.It contains 3 war files which are deployed on different servers.(Weblogic8.1sp3 and jdk1.4).2.First application has to forward the request to second application and second one will forward the request to third one.U ser can see the third application's home ...

JavaScript & Tomcat

127 byte By SantoshKumara at 2007-11-27 9:07:06
Hi,Can we use javascript in Tomcat...If no,then is there any ways to use it in Tomcat?ThanksSantosh

JDK 6: requestPasswordAuthentication called multiple times

630 byte By keplingea at 2007-11-27 9:02:46
Hi...Has anyone else noticed that 'requestPasswordAuthentication' gets called multiple times from HTTPURLConnection in JDK 6? If I create an HTTPURLConnection, and it returns successfully from 'openConnection', if I then do something simple like query for its contentType via ...

JAAS with struts+spring+hibernate

411 byte By nndiasa at 2007-11-27 9:01:51
hi guys, i want to validate an account in windows 2000 to logon in a application that i'm developing in struts+spring+hibernate. is JAAS the best solution to it? i just need to validate if the account owner is really the guy that is loged on.i think i need to know a way to get the windows ...

HttpClient and PostMethod - Https site

2162 byte By HttpClienta at 2007-11-27 9:00:46
Hi All,I am using org.apache.commons.httpclient.HttpClient and org.apache.commons.httpclient.methods.PostMethod to post a request to https site. my requirement is i need to read the url from property file, add some sensitive information in the HttpHeader and post the request to the URL read ...

Where to store password for key store ?

514 byte By namon20a at 2007-11-27 8:47:14
I have primary keys etc stored in java key store and I have hard coded the password for keystore for now but I am thinking to store that password in text file in encrypted form. The architect of my team does not want to store password for keystore in database so now I need two way hashing algo. ...

Problem with Acegi and HTTPS

1147 byte By tamria at 2007-11-27 8:43:13
I use spring framework acegi-security-0.9.0 vesrion and tomcat 5.5. I want use HTTPS for login page. my acegi configuration file contains following code :<bean id="rootChainProxy" class="net.sf.acegisecurity.util.FilterChainProxy"><property name="filterInvocationDefinitionSource"> ...

CRC32

232 byte By Moses84a at 2007-11-27 8:34:04
I need to find a way to duplicate java's CRC32 implementation for C# in Microsoft Visual Studio. Does anyone know of a way to do this? There are other CRC32 implementation out there but none that give the result that I need.

apache xml signature - load and sign pre calculate SignedInfo

448 byte By 2407500518951768323a at 2007-11-27 8:06:50
Hallo to all.I'm trying to sig an xml file (DOM using java apache xml security api. I'd like to perfom sign operation starting not from all document but just from loading SignedInfo with the digest value and sign it.Does anybody know if it's possible and how?I took a look at apache xml ...

help with applet security feature

400 byte By stevenosea at 2007-11-27 7:50:50
I use a USPS web-based label software. When the java applet tries to print the label. A Security popup comes up with the question " this applet is trying to access the printer". A check-box to allow the access appears but 9 times out of 10 the software hangs up at this point. I can not place ...

Path does not chain with any of the trust anchor

648 byte By kbia at 2007-11-27 7:44:07
Hi,I got the exception when using CertPathValidator cpv = CertPathValidator.getInstance("PKIX");PKIXCertPathValidatorResult cpv_result =(PKIXCertPathValidatorResult) cpv.validate(cp, params);java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors at ...

Password retriever application/tool

749 byte By pmohanana at 2007-11-27 7:35:08
Hi...,We have an application where the user can clink on "Forgot My password" link to retrieve his/her password. Right now we do ask a security question as set by the user when the user enters the user id. But going forward we want to send an email to the user with a link , so that the user can ...

j_security_check and changing users/passwords

438 byte By torfua at 2007-11-27 7:27:36
I've got my login page working perfectly, but I want to be able to have users change their passwords.I've tried changing the conf/tomcat-users.xml file directly, but it seems that the user file must be loaded once when Tomcat is started, since any changes after that have no effect (eg. I ...

xml security - Digital Signature - sign digest value pre calculated

526 byte By 2407500518951768323a at 2007-11-27 7:10:38
Hi all,I'd like to perform a Digital Signature (sign) of an existing digest value pre calculated . Does anybody could please tell me some more about it?Looking at specicctions (apis) the signature is performed in one operation, within by given "object" to be signed, the method calculate the ...

jarsigner: unable to sign jar: java.io.IOException: line too long

1614 byte By Ciobara at 2007-11-27 7:10:21
Hi all..I'm having this problem while trying to "sign" a jar.. I think the problem is in the manifest file, i'ts all on one lineManifest-Version: 1.0Main-Class: tchn.login.UpdateManagerClass-Path: DMtchn/DMlib/RMtotdSgn.jar DMtchn/DMlib/RMl2fprod-common-totdSgn.jar ...

Trouble configuring RBAC to allow a dameon to execute set of commands

1995 byte By Horriblea at 2007-11-27 7:03:57
I have a daemon that is not running as root but needs to run several restricted commands. The daemon is spawned via the cron table of a normal user. Most of the documentation I've seen discusses role based access which assumes a logged in user using 'su' and entering a password. I cannot get ...

Getting UAC access on Windows Vista

315 byte By tony.thompsona at 2007-11-27 6:52:53
I am trying to do what is now a privileged operation on Windows Vista (modify the local hosts file) from an applet. Can anyone tell me what I need to do to get the rights I need? I am currently getting a java.security.PrivilegedActionException when I attempt to modify the hosts ...

SSH does not allow me to log in as root

274 byte By jhgiambra at 2007-11-27 6:37:25
I use putty/ssh from my PC desktop. On a solaris9 system I cannot log in directly with root but I can with my Solaris10 boxes. What setting and/or configuration controls this remote login access?Note: all the machines are on the same domain.tksJG

j_security_check redirect

506 byte By torfua at 2007-11-27 6:10:01
Is there a way to force j_security_check to redirect a user to a specific page every time, rather than wherever it came from?If someone goes directly to my login page and logs in using the login form, they get a 404 error since there is no page to be sent to.I would like to bounce everyone to a ...

Permission Not Being Granted

801 byte By rezsama at 2007-11-27 6:09:51
Hi,I'm new in java security. I'm trying to grant "java.security.AllPermission" to my program but getting AccessControlException. Here is the program:package t;public class MyApp {public static void main(String[] arg) throws Exception{FileWriter writer = new FileWriter( new File("c:/a.txt") ...

Understanding JAR signing

993 byte By lightbulb4321a at 2007-11-27 6:09:49
The following link says that the public key that corresponds to the private key used to sign the JAR is placed in the JAR, along with its certificate. http://java.sun.com/docs/books/tutorial/deployment/jar/intro.htmlI have a couple of questions: are both the public key and certificate in the DSA ...

Why josso has no DataSource Credential Store?

27948 byte By eingmarraa at 2007-11-27 6:05:53
Hello everyone, Do you take care of studying the josso-gateway-config.xml and find the Credential Stroe block is lacking of a way to store the username/passport pairs by DataSource? this is the josso-gateway-config.xml listed as below:<?xml version="1.0" encoding="ISO-8859-1" ?><!-- ...

Realm: Tomcat vs SJSAS

1132 byte By JavaNutCasea at 2007-11-27 5:58:33
Hello,May I know what is the SJSAS equivalent for the Tomcat's version of the following server.xl configuration:<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@{IP ...

Authenticate using windows id and password

268 byte By carlos_ferreiraa at 2007-11-27 5:33:17
Hello,I would like to know if it is possible to have a web application running on AIX authenticating the users using the windows id. The scenario:windows networkweb application running on AIXThanks for any help,Carlos Ferreira

SSL Certificate

273 byte By Innflow_Guenthera at 2007-11-27 5:16:37
Hello,what is the reason for acquiring certificates from a certificate authority like VeriSign. Why not just install your own certificate?If one creates a keystore by himself with the keytool, will that be a secure certificate?RegardsRen?

X509Certificate valid date problem

188 byte By EricMacau@Macaua at 2007-11-27 5:11:29
Hello,How can I use pure Java 5 classes to get the X509Certificate valid date (from date and to date) ?Can you give me a simple example?Best regards,Eric

Using my own policy implementation along side default

298 byte By JNooreza at 2007-11-27 4:56:15
Is it possible to use my own Policy implementation along side the default one? For an application I have permissions that have more properties then the "name" and "actions". But for the other permissions, I would like to use the default policy file implementation. Is there a way to do

Changing Browser Variables - Help Needed Urgent!!!

383 byte By BalajiRamnatha at 2007-11-27 4:41:44
Hello ,We have a web application in which the browser performs user authentication. The authentication window prompts for User Name and Password. The User enters his user name in "Domain/User Name" format. Is there any way to tweak the browser/browser variables so that it prompts for User Name, ...

Setting a JDBC Realm using the Tomcat Administration tool

162 byte By Batsupa at 2007-11-27 4:20:48
Is it possible to do it? I got a hosting where i cant get to the server.xml, so i would need to set my JDBC Realm using the Admin tool.Thanks Batsup

j_security_check using database

395 byte By Powerhouse_ba at 2007-11-27 4:09:57
Hi. I have just read the tutorial abut securing web applications. I saw you can use j_security_check and let the application server do the authentication. But in the tutorial, it said to define users using the AdminConsole.But i want to be able to register user, so i must use a a database where ...

How to Store Private/Public Key in Keystore

959 byte By namon20a at 2007-11-27 4:07:47
I can not simply make sense of this KeySTore Class.I have private and public key and I simply want to use them in KeyStore to use later.KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN"); ...

How To Provide Authorization For Jsp Pages

70 byte By swathij_jangama at 2007-11-27 4:04:26
How to Provide authorization for Jsp Pages in a web Application

Creating Token for Login Method

2752 byte By namon20a at 2007-11-27 3:53:58
I am writing a login method that will authencticate user and return token for web services. Next time user will send is token and we will validate the token but requirement is that we donot wnat to keep any state of token at server.What does it mean that when we receive token, we should be able ...

JAAS in servlet engine

846 byte By dirkdaemsa at 2007-11-27 3:52:53
Hi,I want to use an existing JAAS loginmodule in Tomcat. I don't want to use the built in JAASRealm functionality of Tomcat. In a JSF managed bean (called AuthenticationBean) I create a LoginContext and call it's login method. When the user logs out, the invalidate method of the HttpSession ...