JAAS

181 byte By gpvra at 2007-9-28 10:00:20
Hi,Iam getting the following error." javax.security.auth.login.LoginException: Login Failure: all modules ignored "can some body help me to fix this one.

Java IDE Security Issues

321 byte By wbrackena at 2007-9-28 10:04:20
I'm evaluating Java IDE's. My boss wants me to evaluate IDE security issues. I can't think of any issues, or how an IDE can have anything to do with security, but didn't want to sweep it under the rug without asking all of you security experts. Are there any security concerns when selecting ...

What is the most secure Web Browser?

173 byte By wbrackena at 2007-9-28 10:04:26
We know MSIE is probably the worst, but do they all have major issues, is it HTTP in general or TCP/IP? Is there a web browser that is safe? Or safest of all choices?

JAAS Login Context Bug

1329 byte By sanketmittala at 2007-9-28 10:06:24
Hi All :I have downloaded the jaas.jar in my lib\ext folder and am trying to make an authentication module. When i try to run the module as a standalone application the implemented LoginModule classes are found by the LoginContext and the application runs fine, but in an application server it ...

signed mail

409 byte By rtajadaa at 2007-9-28 10:18:54
Lets try answering it better.I've got a signed mail, and i wanna get the certificate of this mail.How can i do that?The message is multipart and i've tried to do this by two ways: 1.- X509Certificate cert = X509Certificate.getInstance(part.getInputStream()); 2.- X509Certificate cert = ...

Is it possible to add a user in Win NT using Java?

293 byte By prospeca at 2007-9-28 10:29:42
Hi,Is it possible to add a new user to Win NT using Java, assuming that the user running the application is an administrator?If it can't be done in Java, can anyone point me in the right direction to research this?I appreciate your help.Regards,Liam.

Authenticated Subject not available in AccessControlContext

1867 byte By DynaPetea at 2007-9-28 10:32:48
Hello all,I have recently integrated a JAAS LoginModule into my application code, and am not achieving expected results. I successfully deployed a custom LoginModule, principal, CallbackHandler, and Action, in such a way that when I invoke the following:SMAFCallbackHandler sch = new ...

Authenticated Subject not available in AccessControlContext

1821 byte By DynaPetea at 2007-9-28 10:33:03
Hello all,I have recently integrated a JAAS LoginModule into my application code, and am not achieving expected results. I successfully deployed a custom LoginModule, principal, CallbackHandler, and Action, in such a way that when I invoke the following:<code>SMAFCallbackHandler sch = new ...

JAAS/NT hackable problem...

1125 byte By aoswala at 2007-9-28 10:34:54
Trying to develop a "fat client" to pass a Subject to the middle tier. Would somebody mind telling me how NTLoginModule is useful? Might be missing something obvious, but it is incredibly easy for somebody to re-write the pertinant "NT" classes to populate a Subject w/ false information. For ...

Enforcing Password Policys

248 byte By macarthya at 2007-9-28 10:42:24
Hi,I need to Enforce several password policies on various web based applications. E.g password must be x long , contain symbols, not based on dictionary words etc. Is there any open source API like this out there?Thanks

signed fields invalid

1176 byte By pkelley5a at 2007-9-28 10:55:24
The following code (see below) produces a CertificateException. The detail message buffer reads, "signed fields invalid" error.pkcs12Data is defined as, "byte [] pkcs12Data;" It holds a buffer that contains the server's private key and corresponding certificate in"Personal Information Exchange ...

How to tell VM to use a different java.security file other than default

961 byte By robertTa at 2007-9-28 11:06:57
I have some background processes that run as NT services. Eachprocess will run in its own VM. I would like each process to use its own java.security file. I know there must be a wayto tell the VM to use a different java.security file other thanthe default (for each process). I have search for ...

Custom Policy vs. J2EE Security

1954 byte By cschlla at 2007-9-28 11:14:52
Hi there, Java Security architecture gurus,I am currently trying to find the best architecture for the new security framework for our company's application. The system requires instance based security. ACLs are stored in a database. JAAS's authentication is just fine, but its file based ...

Kerberos and JAAS tutorial - delegation

693 byte By pastazaa at 2007-9-28 11:43:13
Hi,I searched for this answer in the archives and found some similar question, but no answer.I have run most of the Kerberos JAAS tutorial with few problems. However, when I tried the delegation part of the "More things that you can do with java GSS-API and JAAS" section, I could not get it to ...

Secure File Uploads and Downloads

1143 byte By namruba at 2007-9-28 12:00:10
Hi,I've been trying to figure out how to develop a way, so that by using a browser-based GUI, I can allow users to upload and download files to and from an ftp server in a secure manner. I'm also concerned about sending user account information to logon to the ftp server in an unsecured ...

default ssl context init failed: Cannot resolve key

511 byte By ybuchera at 2007-9-28 12:02:56
Hi, I get this SSL Exception when I try to run my server usingssl socket: "default ssl context init failed: Cannot resolve key"it is thrown at this line: "sslServerFactory.createServerSocket(port)"I created a kestore and trustore files using 'keytool' and the step by step from the Jsse ...

The Java Filter

176 byte By skiaboxa at 2007-9-28 12:23:30
I run windows 2000 sp3 and ie6.Is there any way I can use this method ( http://www.cs.princeton.edu/sip/JavaFilter/) to prevent a hostile applet from loading itself?Thnx.

Can distribution of a .java.policy file be eliminated

1076 byte By geletta at 2007-9-28 12:26:57
Sorry for the stupid question, but I'm fairly new to the realm of dealing with Java security...I have an applet that I want to deploy worldwide as part of an upgrade to an existing website, but I've run into the following error:"Error getting connection to: ...

Get Client Certificate by Servlet

1007 byte By andy419a at 2007-9-28 12:35:28
hi everyone,i am using servlet to get the details of the client certificate though the Browser IE, however i got the Exception.java.lang.ClassCastException: [Ljava.security.cert.X509CertificateI found that it is failed to get the correct object in the following ...

HttpsURLConnection posts OK but empty response (not in browser though)

884 byte By metalia at 2007-9-28 12:39:58
Hi All,A very odd problem is happening with our system. We use a HttpsURLConnection to connect SSL to a https://www.securehost.com URL.Calling this URL in a web browser or posting a form to it returns some text e.g "The Response".We post to this URL over the HttpsURLConnection and get a ...

Using MessageDigest Class to check if a File was changed

310 byte By spoppeka at 2007-9-28 12:42:05
Hello,i want to write an application which times out at a Certain date.I would like to store this date in a seperate File and each time the apllication starts, it has to check first if the File has been manipulated or Changed.So, how can I remind what the original message digest ...

HTTP Basic Authentication using JAAS

1593 byte By kslehera at 2007-9-28 12:46:27
I would like to use the HTTP basic authentication for a webapplication using JAAS. I am not able to figure out as to how to write the CallBackHandler to invoke the browser pop-window/use the Basic Authentication of HTTP to get the user name and password.I know there is a DialogCallBackHandler ...

pkcs#12 decoder

330 byte By pkelley5a at 2007-9-28 13:36:39
I'm trying to freely download an opensource version of a PKCS#12 decoder written in Java. I searched all over the internet and found one at www.semoa.org but my company won't let me use it due to licensing issues. Does anyone know where I can go to freely download a PKCS#12 ...

Web Applications and JAAS

2329 byte By claude_jonesa at 2007-9-28 13:38:40
Hello,I am working on a project which needs to incorporate JAAS authorization with a Servlet Container抯 authentication/authorization (web.xml).Based on my understanding, (please correct me if I'm wrong) Tomcat currently handles declarative security based on a deployment descriptor known as the ...

Socket Permission - Connection Refused

1261 byte By vassTa at 2007-9-28 13:43:50
HiI have read many posts on this forum and others, tried many things and still no luck, so I thought I'd post my problem here and see what happens. Any suggestions appreciated.I have a client(applet)/server pair. The applet-client sends strings to the server and the server replies by sending ...

access denied (java.net.SocketPermission localhost connect,accept,resolve)

1070 byte By trevorbsa at 2007-9-28 14:05:33
I have a JCA adapter that needs to download some of its classes from an HTTP server. I modified the j2ee RI server.policy file like this...permission java.net.SocketPermission "*.*.*.*:80", "connect, accept, listen, resolve";(I've tried other combinations, localhost, my real IP, etc.)At run ...

read write capabilities for an applet

335 byte By acethrowbota at 2007-9-28 14:07:03
i was wondering, is there a way to tell your computer to let all applet have read write access? cause i was playing a java game on my computer, and there is a save game option that save your game data in a file on the desktop, but everytime i try it, it gives me a security exception. is there ...

how do You protect Your code from decompiling?

167 byte By vasil_a at 2007-9-28 14:07:23
hi!jad is a great tool - it will bring your .class files back to sources. Now I am afraid of installing my programs since someone can simply steal code.

Validating a server's certificate

519 byte By bhippsa at 2007-9-28 14:15:12
I am writing an app that does an https post of a request and gets a result returned. The company that I am interacting with has a certificate from verisign. I know nothing about certificates! I need to validate their certificate in code as I do this transaction. I need to validate that their ...

about RSA

299 byte By relaxya at 2007-9-28 14:17:45
I have installed J2SE1.4.0 and I want to work with RSA algorithm.I've downloaded and installed the "Unlimited Strength Java(TM) CryptographyExtension Policy Files".but it doesn't work and I won't use the third-party components?Does anybody have any

Weblogic security realm mapping to DB

361 byte By Scar_uaa at 2007-9-28 14:20:33
I have one question about Weblogic 7.01 security.I have created USER, GROUP and ROLES table in my RDBMS.Can I use the RDBMS realm if my users are in a databasetable already? Can I tune Weblogic security realm to my database tables?Any advice or links will be very appreciate. Thanks a lot for ...

Secure license key

492 byte By DavidThia at 2007-9-28 14:26:55
Hi;To try and stop pirating of my app, I want to do a license key where I take their name, add a magic string to it, do a MD5 on that, and the hash code is the license.However, I have to put in the code I ship all of the code that does this which, with decompiling, they can find out both how I ...

Quick examples - register, login, change password

945 byte By marcey_rhynea at 2007-9-28 14:34:15
Hi,I'd be ever grateful for some quick and dirty examples of how to handle registration, login, and change password scenarios for a webapp. I'd like to use a one-way hash (MD5).Registration: user enters userid and password (and some other info). UserID and Password are stored in database, but ...

How to create a sandbox?

751 byte By intangira at 2007-9-28 14:34:49
Hi.I have an app that dynamically loads a jar, and through reflection instantiate some classes of this jar and call some methods. I used URLClassLoader for that.Now I need to add security. I made a derivation from URLClassLoader, and derived the following method:PermissionCollection ...

NEED HELP!!! converting jceks to jks

2186 byte By gugo46a at 2007-9-28 14:35:08
Hi all,I need help in converting a keystore from jceks to jks. I wrote a program that opens both keystore files, reads the keys from the jceks keystore and writes to jks keystore. The initial jks keystore is empty. The program executes fine, but when I use the keytool to read the new keystore I ...

Reading a file from an applet in a BROWSER

528 byte By Ivanhoe255a at 2007-9-28 14:36:23
NOT the appletviewer!How in the world is this done. I have the policy files set up correctly so that it works fine in the Appletviewer. But I am trying to read the contents from a file that is located in the same directory as the applet class, and it won't work. I've tried everything!I'm ...

Reading File Names from a directory on WebServer

559 byte By HaroonIa at 2007-9-28 14:41:52
Hi Guys,I have a small problem in reading file names from a directory(folder) on a WebServer. Problem :I have a folder on the Webserver called PDF. I would like to read all file names within this folder in a JSP. The JSP is located on Applicatin Server. Application Server and Web Server are ...

Can't decrypt with JCE

2752 byte By robcherryjavaa at 2007-9-28 15:12:33
Hi all,I've written a very simple encrypter/decrypter using JCE and the sun provider. It seems to encrypt fine, but it doesn't decrypt at all. The code is below:-import java.io.*;import java.net.*;import java.security.spec.*;import javax.crypto.*;import javax.crypto.spec.*;import ...

How to store a private key in keystore

350 byte By javamada at 2007-9-28 15:14:48
Hi guys,i have to sign a document before sending using a private key. This private key is ALREADY generated (i received it from a customer). I would like to store it in keystore for security reason. But, apparently, the only way to store a key in keystore is generating a new one ?!!!? Please ...

Access denied error msg

621 byte By melloalice01a at 2007-9-28 15:17:50
Hello,I am new with Java.Here is the situation:I have a java file and a class file created using the studio one. It is a FileChooser from Swing and it is working fine when I am executing it from the studio. I am starting an HTML application, so I created a image button where I put a link to the ...

Accessing applet to mysql DB

368 byte By hednea at 2007-9-28 15:40:49
I have a peculiar problem. I have finally been able to make my java-applet access my mysql DB by configuring the .policy files. But the applet only works when I Load the html page from my own computer and the file-manager, not when I try to access it from the server(still from my own computer). ...

Multiple Sign-on (more than one subject)

1053 byte By rkenworthya at 2007-9-28 15:44:22
Hi readers,I am developing some software using JAAS and am having trouble implementing multiple sign-on. Here is exactly what happens. I have two users: guest and system. I also have an EJB which allows only "system" to access a particuar method. I would like to be able to have "guest" sign-on ...

JAAS configuration error

308 byte By ktreddya at 2007-9-28 16:37:02
HI Iam getting the following error while running a sample RDBMS JAAS Login ModuleError creating LoginContext. Login Failure: all modules ignoredjavax.security.auth.login.LoginException: Login Failure: all modules ignoredPlease clarify this issue.Thanks in ...

Single Sign on in Windows 2000

307 byte By sivaprasatha at 2007-9-28 16:46:04
Hi Guys,I am new to Single Sing on. I am in a Urgent position to do the following Scenario. I need to Authenticate the User using the Windows UserName and Password in my Application. Anyone can help me with a Program to do a Single Sign on in Windows 2000 ...

Login to a database

199 byte By caro3a at 2007-9-28 16:48:40
Have you seen any examples on a Login to a database?where you can promt for a username and password and then enter into the database where the user can update,delete,find etc. Pls help.

NT Authentication & Tomcat

80 byte By mahesh_anandana at 2007-9-28 16:58:59
does anyone know how to implement NT authentication using Tomcat Realms ?

Form authentication using Java

523 byte By takista at 2007-9-28 17:08:58
Greetings to all,I was wondering if anyone has any information that discusseshow to authenticate a Java application to another web applicationusing Form authentication.Currently I'm working on a Java application that requires to login tomultiple applications that use form authentication.I'd ...

verify a cert

415 byte By antmarmoa at 2007-9-28 17:25:46
Hello:I need do verify a certificate in LDAP server (iPlanet). I'm working with struts. I'm getting a certificate inside the request object and then I need do verify this against LDAP server. I'm supposing that I'm going to use the java class java.security.cert.X509Certificate, but I don't ...

Custom Policy file

718 byte By mcsimenko2a at 2007-9-28 17:26:23
Hi!I want to use JAAS for authorization in a web-application that runs underTomcat4.1.I don't want to put my policy file neither in java_home/jre/security neitherin user.home directories (because I think it's not correct). So I am forcedto create my own implementation of java.security.Policy, ...

Has anyone tried to use JAAS 1.0 in WebSphere version 4

49 byte By kxz255a at 2007-9-28 17:28:26
Please let me know how you deploy the jars