some easy problem i think

2145 byte By nickvdha at 2007-10-1 0:50:52
my SAX parser needs to read/write a file, therefore i set this permissions:grant{permission java.util.PropertyPermission "javax.xml.parsers.SAXParserFactory", "write";permission java.io.FilePermission "c:\\-", "read, write, delete";permission java.net.SocketPermission "*:1-", ...

Progamming client security

2077 byte By hcaoa at 2007-10-1 0:52:58
Hi I am developing a client application that needs to access some protected resources on app servers (such as sending messages to a jms queue). The app server I am using is weblogic81, but my question is generic.Obviously, I got "access denied" exception if I don't do anything about security. ...

Using an RDBMS for the storage of the policy file definition

963 byte By grayum33a at 2007-10-1 1:04:25
I'm currently designing the security portion of an application and it has been decided that all user information will be stored using a database. We also wish to store the policy file definition in the database as well in order to better protect it from intentional or unintentional editing / ...

org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)

1609 byte By iloveuPJKOK7a at 2007-10-1 1:05:41
I hit an error java.lang.NullPointerException when I try to access a https website.Just wondering if someone can assist:Coding:try{TrustManager[] trustAllCerts = new TrustManager[] {new X509TrustManager() {public java.security.cert.X509Certificate[] getAcceptedIssuers() {return null;}public ...

a question about jarsigner

866 byte By nay0648a at 2007-10-1 1:09:46
I use jarsigner to sign a jar file with a self-signed entry in keystore.I think when verify this jar file,jarsigner will tell me to input the certificate path,the certificate is corresponding to the private key I used to sign,but jarsigner don't ask me to input any certificate.the document ...

help me!!! How to use JAAS: Authorization in web application?

1172 byte By cyberaoma at 2007-10-1 1:25:00
>_<" : Hi All,I am very new in JAAS & new Java developer. I have successfuly authendicate users usingLoginModule But I don't know where and how to set the user's permission to controlthe access to certain URL.For Example:In our database there is a user info table called USER_AUTH. ...

Password impelmentation

400 byte By Rajeev.Asthanaa at 2007-10-1 1:39:44
Hi,I 'm new to this so please pardon me for asking such stupid question.I want to authenticate user before entering my Swing application. For this, I can design a userid and password screen. (easy stuff)How can I store the "encrypted" password in some file/ table and authenticate at the time ...

RSA SecureID authentication

327 byte By abasitha at 2007-10-1 1:41:33
Hi, I am developing a web application, which uses the RSA SecureID solution. I need a way to communicate with the server or agent and I am looking for some sort of third party API. As I am unable to find anything on this topic, I request help from those who have worked on RSA ...

JAAS with LDAP

3154 byte By ted_trippina at 2007-10-1 2:12:17
Hi,I've been thru the tutorial and written my own CallbackHandler but when debugging the handle method is never entered.Here's a code snippetLoginContext lc = null;try{ LocalCallbackHandler localCallbackHandler = new LocalCallbackHandler(user, pwd); lc = new LoginContext("LDAP", ...

File Uploading

121 byte By PURNA@JAVAa at 2007-10-1 2:13:12
whether the file selected exists after modifying the path of the selected file which is displaying in the textbox?

against Windows 2003 CA

340 byte By Java_Skopjea at 2007-10-1 2:18:52
Are there any Java API's or classes for issuing certificates from Windows2003 Certification Authority. I have CA under Windows 2003 and I would liketo build Java application interface for issuing, verifying and revokingcertificates.Any help or technique appreciate.Regards,Kostadin ...

using jaas

166 byte By schumi_0202a at 2007-10-1 2:45:15
can some one help me in using jaas , where i have access only to web.xml not server.xml , please gimme a link or an example for using jaas please its vey ugent

Digital Sing using a Private Key saved in a KeyStore

429 byte By carlos.brachoa at 2007-10-1 2:52:19
Hi everybody....I am trying to sing files in my program, so I was watching the Signature class and I need a private key, I have a signed certificate by IPSCA and I want to sing the files using this certificate private key. How can I get this private key? I mean the certficiate private key, it ...

problem porting kerberos GSS app from windows to solaris

3165 byte By cupdikea at 2007-10-1 2:52:57
My application runs fine on windows. When I move it to Solaris , I get a KRBError code 68 -- and I can't find any infor on what that means. The root cause is "Identifier doesn't match expected value (906) " but I'm running the same login info that works on windows. Any guidance on what I'm ...

Security Problem

729 byte By DeltaCodera at 2007-10-1 3:00:32
I have a large security problem. I am making applications and applets that need to connect to a database. If I hardcode the address, user, and password of the database someone can decompile the code (javap -c <class>) and get the information. If I place the information in a seperate ...

configuring tomcat for form based authentication-help badly needed

401 byte By schumi_0202a at 2007-10-1 3:05:50
hi , i want to have form based or some other way of authentication for the users comming to my site , i have access only to web.xml , but in tomcat documentations its giveni need to change server.xml and tomcat-user.xml , can i make these changes on web.xml to implement it or please tell me way ...

Client Authentication to EJB NOT from Web Tier

952 byte By gsilverma at 2007-10-1 3:08:08
Scenario:1. The client is a java application (not a web app).2. The EJB is stateless session3. The EJB has authorization information in the deployment descriptor - Declarative Security. (I don't want to use programmatic security).4. I want the client to invoke the EJB, and I want the ...

Kerberos Login failing

4364 byte By projyala at 2007-10-1 3:08:35
Using builtin default etypes for default_tkt_enctypesdefault etypes for default_tkt_enctypes: 3 1 16.Using builtin default etypes for default_tkt_enctypesdefault etypes for default_tkt_enctypes: 3 1 16.>>> EType: sun.security.krb5.internal.crypto.DesCbcMd5EType>>> KrbAsReq ...

How to export private key file from jks keystore with j2se1.4.2 keytool?

79 byte By yixiaoqianga at 2007-10-1 3:15:43
How to export private key file from jks keystore with j2se1.4.2 keytool?

tomcat-5.0.27 authentication/authorization

1944 byte By matea at 2007-10-1 3:20:06
Hi.Can I change authorization parameters in code?I found this:"1. Check whether there is an Authorization header. If there isno such header, go to Step 2. If there is, skip over the word“basic” and reverse the base64 encoding of the remaining part.This results in a string of the ...

Creating a PKCS #7 Certificate Chain

534 byte By smithsaa at 2007-10-1 3:26:51
I'm writing an application that contains portions of a CA. I'm able to successfully generate a CSR and have my "CA" certificate sign it, but can't seem to find out how to generate a PKCS #7 certificate chain from the signed certificate to complete the job. I've looked through the ...

Rejected client certificate by the server

2907 byte By carlos.brachoa at 2007-10-1 3:34:32
Hello everyone.I writting you because a I have a big problem using ssl and client authenticate.I created a connector for the client connetions:<Connector port="9443" maxThreads="150" minSpareThreads="25" ...

Can I use JAAS authorization to do this?

979 byte By JSTigera at 2007-10-1 3:40:43
I am developing an object pool and I am told to use JAAS authorization to authorize users to read/write/create the object pool. More specifically, some users, like managers, are able to read, write, and create the object pools, while some other users, like operators, can only read it. I have ...

Invalid Kerberos Encryption Types

7051 byte By dpattisoa at 2007-10-1 3:57:03
Hu guys,I'm currently setting up a J2EE web-app to use Kerberos via HTTP (by using the jcifs-ext package, which uses JAAS and JGSS through the Negotiate protocol), but after an age of finding out how everything should be set up, I've hit a problem at what I think is the last stage.Basically ...

Untrusted Server Certificate Chain

1092 byte By maran1977a at 2007-10-1 3:58:52
Hello,Even though there are several topics on this i could not avoid posting another on this. I followed all the steps which where there in the previous discussion of the same topic.My application which is installed in SunOne App server is accessing a https site. I got the trusted CA certs from ...

Tomcat config for ldap/active directory

752 byte By purirb123a at 2007-10-1 4:09:56
My understanding of TOmcat dcoumentation is as below:Tomcat web.xml config file can be set up to point to LDAP. Only thing I need to set up there is LDAP URL, LDAP root login/password(for searching LDAP).Having done that if I set up tomcat for basic authontication(will this work for ldap/AD) ...

Applets hang when using plugin 1.5 in Linux when authenticating

738 byte By rthaaa at 2007-10-1 4:14:06
Hi all.From my applet code when an URLConnection.getInputStream() method is called the browser hangs, if authentication is turned on the webserver.This works with jre 1.4.2 on linux, for the matter on windows with Jre1.5 also.Also it works on 1.5 if authentication is not set.So it is this ...

Remotely control your PC from ANYWHERE in the world using JAVA/RMI!

847 byte By Zima at 2007-10-1 4:18:19
I have just developed a project named XtremePC.This well commented Java project involved RMI technology, can be used to control the server from anywhere in the world including features of listing running processes, file transfer, shutdown/logoff/lock/restart server PC, execute programs, ...

Client remote Authentication using JAAS and EJB Access

2733 byte By StephanTheNumba at 2007-10-1 4:24:00
Hi, I have a problem using JAAS in combination with Sun One Appserver 8.1 and a java remote client trying to access an EJB. Here is the scenario:I have implemented an EJB who's methods are protected through the deployment descriptor:<assembly-descriptor> ...

Kerberos - setting KDC timeout value

353 byte By Dave.Citia at 2007-10-1 4:24:17
I'd like to know how to set the timeout for getting a ticket from the KDC. The default seems to be30 seconds, with 3 tries. This is really long and it exceeds what the application expects for a timeout for it's entire process.So, how is this value set? It would be preferrable to be able to ...

VPN and java

345 byte By gonzalo_ron@yahoo.coma at 2007-10-1 4:24:37
Hi!!!!,I need to create a VPN for comunicate two machines. For create a VPN, can i programming that with java?, o the VPNs are for the operating Systems and devices?.I am very confused with that. How can I to program a VPN with java?.Thanks and sorry for my little Enghish.Greeting from ...

Code Isolation

569 byte By keithwilsona at 2007-10-1 4:28:34
Perhaps this is a simple request: I am developing an application in swing that permits the extension of the application through 'plugins' (remote jar/code that conform to a java interface). However, the issue it that I want to ensure that the code is not permitted to use network connections ...

X509Certificate Authentication

358 byte By pen1999a at 2007-10-1 4:32:05
Hi,How do we perform the X509Certificate authentication in java? Say I have the sender certificate(which contains its public key), the singed data, and its signature. How do i verify this against the root trusted CA in cacerts to make sure that this certificate was actually given by a CA that ...

Random image to prevent automatic registration

300 byte By richardgundersena at 2007-10-1 4:38:27
Hi thereI need to generate a random series of characters and present them as an image when a user registers at my site - to prevent automatic registration (in the same way as Yahoo and Hotmail do, for example)Does anyone know of an open source ...

MessageDigest - Please help

520 byte By Mr_RKa at 2007-10-1 4:40:11
Hello,Can anyone tell me how to reverse the following code so that I can "undigest" the message?String someString = "whatever";MessageDigest md = MessageDigest.getInstance("MD5");byte[] bytes = someString.getBytes();byte[] digestedBytes = md.digest(bytes);How can I get the string back after the ...

Key store on JNDI ?

473 byte By Martin_Zana at 2007-10-1 4:49:20
Hi, I develop application working inside application serwer (JBoss 4). The application has functionality that requires usage of kryptographic keys for signing and decrypting data. My question is about concurrent access to such keystore, under heavy load, one key may be accessed from many ...

Application Security using JAAS and JBoss

1898 byte By dawuada at 2007-10-1 4:50:12
The following is from my LoginAction class:try{SecurityAssociationHandler handler = newSecurityAssociationHandler();SimplePrincipal user = new SimplePrincipal(username);handler.setSecurityInfo(user, password.toCharArray());LoginContext loginContext = new LoginContext("MySqlDBRealm", ...

PKCS#11 driver dll and Java

1069 byte By zaphod.grankvista at 2007-10-1 4:52:08
Hello!I'm trying to use a smartcard to do some signing and this needs to be done using Java. I have read about the SUN PKCS#11 provider and thought that this would work. However as it turns out my card vendor refuses to provide me with a pkcs#11 .dll and without a dll the sun provider won't ...

Cacerts default password?

422 byte By baron_raymondoa at 2007-10-1 4:55:41
Hi everybody,I have a question relative to the default java keystore,the cacerts. I'm trying to import/export certificates but i'm prompted for the keystore's password.I just installed jdk and i'm wasn't prompted for any such password. Is there a default password? anyones knows it or is ...

Initalizing KeyStore, without .keystore file

2457 byte By FritzBayera at 2007-10-1 4:59:41
Hello,I have two private/public key pairs and certificate for a client/server program. It uses and relies on client side authentification via SSL.All this information is stored in two java keystores. Unfortunately the KeyStore class happens to be vendor depended an so are its keystore files ...

JCE 1.2.2. auth error

423 byte By olleDeZwarta at 2007-10-1 5:00:55
I am trying to use jce 1.2.2 in websphere application developer 5.1 testing server, when I use the jce functionality I get the errorjava.lang.SecurityException: Cannot authenticate JCE framework java.util.jar.JarException: jar:file:/C:/Program Files/IBM/WebSphere Studio/Application ...

Getting list of domain names on NT, and authenticating user

579 byte By Realgara at 2007-10-1 5:02:25
Hello, I want to make an class that will check the user login name and password on a NT domain, the class will show a screen with 2 fields, username and password, and a combobox, with all domain names, on this screen the user will type his username and password and choose a domain to login to, ...

Restrict some methods.

1255 byte By _David_a at 2007-10-1 5:05:58
Hi,I don't understand those things very well, please be patient ...I want to call a method by reflection. In which class this method is, is unknown at compile time, only the method name and signature is known at that time.I want this method to have restricted access to the file system, but if ...

How to allow signed applet to read/write files?

1158 byte By johnnybravoa at 2007-10-1 5:08:59
Hi, I want my applet to be able to read/write text files on a user's computer. eg apple/pc, ie/firefox/netscape.Anyway i've created a key, jar file, signed the jar file etc, and when I run my html page, I still get the security error."java.lang.Exception: java.security.AccessControlException: ...

GSS-API/Kerberos v5 Authentication

6118 byte By niall.colreavya at 2007-10-1 5:13:05
Hi,I tried the GSS-API/Kerberos v5 authentication tutorial at http://java.sun.com/products/jndi/tutorial/ldap/security/gssapi.html . When I ran the code, I was able to authenticate using Kerberos but was unable to perform any JNDI operations because this line: ...

API FOR READING MICROSOFT WORD DOCUMENT FILE

177 byte By Dipalia at 2007-10-1 5:13:11
HELLOI need to know are there any api's to read a word document i.e a .doc file into a java program. If there r api where can i find them & how can i use them

trying to get the real IP address, not the SOCKs or PROXY IP

887 byte By only1psychopeea at 2007-10-1 5:51:18
I know it exists as I have seen it working, but does anyone have hte code that will allow me to retrieve the actual IP address of a computer, even if they are using socks or a proxy to try and disguse it? As I have seen it work and their is a way of retreiving the real IP address, but I dont ...

How does j_security_check know the originally requested page?

1309 byte By solmyr72a at 2007-10-1 6:00:33
Hi,When a web-application uses "j_security_check" , where does it store the name of the original page requested by the user (the one to which user should be redirected after a successful login ) ?For example, assuming the following scenario:0) A web application contains a page "secret.html", ...

Multiple password access to decrypt encrypted file?

155 byte By Bill_Cokea at 2007-10-1 6:02:50
I would like to encrypt a file with one password, but allow many (all known ahead of time) passwords to decrypt the file. Is there a way to do this?

JAAS: Programmatic or Declarative?

594 byte By phaytea at 2007-10-1 6:03:27
During a discussion about our project's security implemenation a difference of opinions occured over the nature of JAAS. I contended that it wasn't a declarative model in the sense of say EJB security or transactions. The opposing view was that the fact that JAAS builds a policy file for ...