help on jguard

184 byte By subhash.kumara at 2007-10-1 19:28:00
HiI saw about jguard ( http://jguard.sourceforge.net) in many places of this forum.But no downloads are available in the site ...can anyone suggest alternate url...

Mozilla's JSS and PKCS11

595 byte By stvva at 2007-10-1 19:35:53
I want to make an applet that can access smart cards. I've been looking at the new PKCS11 functionality in JDK1.5 but it seems limited. It's poorly documented and I've not found any way to write something on the smart card, only am able to read from it. So now I'm looking at JSS - a java ...

Cannot set up certs for trusted CAs

3170 byte By guruarkalguda at 2007-10-1 19:40:09
HIIf i try to run my aplication I am getting the following exception - JavaRun -subString1.31.3........................1.3.1_07Exception occurred during event dispatching:java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAsat ...

JAAS in client-server application and how to change password with JAAS?

899 byte By keeloa at 2007-10-1 19:51:20
Hello,I have RMI client-server application where I'd like to use the JAAS to try it how it works. My application works so the client calls the login method of the server and if the login succeeds the server returns an object. So I would use the JAAS on server side to check if the login is ...

Security without policy files

432 byte By euge2004a at 2007-10-1 19:57:25
hey does anyone know an efficient way to write policies without using policy filesi have a server which must run user program which will be located on the serverthe server must have full permissions but the user code have nonealso (and painfully) the user code must be run in the same virtual ...

SunPKCS11 - does anyone used it or *really* know how it works?

628 byte By viecilia at 2007-10-1 20:11:39
Hi guys,I need to develop an app to access security devices (tokens, smartcards) and I know that Sun included on Tiger this SunPCKS11 provider to access those devices through PKCS#11 interface.Well, I've read the "JavaTM PKCS#11 Reference Guide" and understood how it works and how to configure ...

SJS App Serv 8.1_02 Keystore was tampered with, or password was incorrect

2351 byte By ghezzia at 2007-10-1 20:28:24
I'm in a big problem after adding a new certificate to the keystore file of SJS Application Server 8.1_02The application server doesn't start anymorewith the followin errorException in thread "main" ...

Location of .keystore and cacerts

674 byte By pernika at 2007-10-1 20:33:08
We user HttpUrlConnection to download some data over HTTPS. We are also using SOAP over HTTPS. The problem is party public certifikace located in the .keystore. We found that we have to set following ...

Regarding security exception

2120 byte By kkathira at 2007-10-1 20:38:21
Hi,i got an error, when my applet accessing some data from servlet. i am retieving data as stream, applet calls the servlet, servlet writes the data as stream , but applet is not able to get the data, it throwing an exceptionplease find the error below..ava.lang.ExceptionInInitializerError: ...

Symmetric Cryptograpgy between C++ and Java

1183 byte By crsschmia at 2007-10-1 20:40:29
Hi,I'm working on a client/server application and I'm considering to use symmetric key cryptography to secure the communication channel between them. As both client and server will be distributed on the same machine there won't be a key exchange and therefore there is no need to adopt public ...

Why is doAs() static?

553 byte By simon_h_g_robertsa at 2007-10-1 20:44:43
I've been bothered by this for a while, and I can't come up with a good answer.Why is the doAs() method of the Subject class static? It seems totally bizarre to be invoking a static method on that class, then passing a perfectly good instance of the Subject class as the first argument into ...

PKCS#11 pin initialization

190 byte By Marcin_Cinika at 2007-10-1 20:49:58
How to initialize smartcard's pin number using Sun PKCS#11 implementation ?How to personalize smartcard (generate keys and load certificate) using Sun PKCS#11 implementation ?

JAAS & LoginPodule - Exception when adding Principal to subject

6213 byte By ZveNa at 2007-10-1 20:50:13
I am writing custom login module which using ejb to authenticate user. When I am trying to add principal to subject (in "confirm" method) I always have SecurityException. What wrong? (I deployng this module with EAR)Here some code & stack trace:public class ServiceLoginModule implements ...

Opinion for use of Java Security

1446 byte By JetsFana at 2007-10-1 20:50:45
Hello,I am building an application for fantasy football.So I wanted to find out if I should implement my own security or use JAAS and does JAAS fit what I am actually trying to do.Here it goes:There are really four roles within the application.1. Admin - That is all access to everything2. ...

JAAS Authentication & Struts

2592 byte By ZveNa at 2007-10-1 20:52:41
I have custom LoginModule and some action with role="catalogManager". When I authenticate a user and trying to access this restricted acrion I always have 403 forbidden, but CustomPrincipal with name "catalogManager" already in Subject. What wrong here?There some code:public class ...

virus and trojan horse

422 byte By pathfinderz1a at 2007-10-1 20:58:52
when my virus scan runs these show up and i remove them and they come back. This looks like a big problem to me don't know about you.Trojan horse Java\Classloader infected. Embedded objectVirus identified Java/ByteVerify Infected . Embedded object I don't know where these are coming from. I ...

Cannot retrieve mapping for action /j_security_check (Tomcat/JAASRealm)

1845 byte By egonielsa at 2007-10-1 21:20:30
All,I have a Struts/JAASRealm setup with with a FORM auth. method. and I get this error: Cannot retrieve mapping for action /j_security_check.. I've been lurking a lot of forums and can't find the solution. Do I miss something?some settings:--server.xml <Realm ...

How to setup ant application's permissions?

2020 byte By cleverpiga at 2007-10-1 21:27:28
When i looked at the ant 1.6.5 manual,i found some permission method to grant or revoke special permission for ant application(reference by http://ant.apache.org/manual/CoreTypes/permissions.html).So i wrote a sample ant build file to exam it!This build file is made to check whether it is ...

Tomcat web service, on localhost, "unable to find valid certification path"

729 byte By johntoewsa at 2007-10-1 21:50:59
I have an Axis web service I've protected with SSL and basic HTTP auth. It's running (dev.) on my machine.When I try to access the service with a Java tool, I get an exception (below). I'm not sure what to do since the instructions I've found online talk about adding the certificate to my ...

Java client and form-based security

441 byte By st.murphya at 2007-10-1 21:51:20
I wrote a Java client app (e.g. command line app) that connects to a web site via http to download (get) a file. Works good for most situations until I tried to get a file that is protected usign form based authentication. I can't figure out how I'm supposed to deal with this. I was able to ...

Problems with JAASRealm, Form-based authenticating and Cyrillic

320 byte By SergeySergeya at 2007-10-1 21:55:01
I want my users can authenticate using cyrillic in thier names.I have JAASRealm ... and if i use BASIC authenticating it works very well. But when i use FORM-BASED authenticating it doesn't works with cyrillic while it works with latin.In tomcat's console i see "?" instead of ...

Jaas is a pain ..

605 byte By Javanautea at 2007-10-1 22:07:51
Hi all,Looking around for jaas integration with J2EE, i find it really difficult to find good documentation with working apps ..I personnaly would be interested to set up a login system with my application that could integrate easily with struts and hibernate. For the moment am just asking for ...

form based authentication problem

591 byte By tacoma895a at 2007-10-1 22:18:42
My web application uses tomcat 5.5.10. By using basic authentication, the application works fine. Buy using the form based authentication, if I submit a invalidate username/password, appication seems worked, a error.jsp was showed up. But if I submit a valid username/password, I got a "HTTP ...

How to accept resolv on all hosts?

674 byte By genepia at 2007-10-1 22:19:53
Hi,My web application is running under a security policy and I don't know how to write a rule to allow the application to resolve all host names. Is it possible to write a policy rule like:grant codeBase "file:/usr/local/webapps/myapp/-" {permission java.net.SocketPermission "*", ...

Single sign-on using NTLM on the client?

667 byte By cagatayka at 2007-10-1 22:20:57
I'm trying to figure out a way to let a java client application running on Windows to seamlessly connect to remote HTTP servers over a proxy server that uses NTLM. Most of the advice given on the list seems to be on enabling a server application to check the credentials given by other clients ...

Creation of PAM in java

152 byte By chida.sa at 2007-10-1 22:23:50
How do i create or is it possible for me to create a Pluggable Authentication Module (PAM) in java for freeradius.Thanks in Advance

What's the difference between 1.4.2_05 and later versions with Kerberos?

9719 byte By andreas@swedena at 2007-10-1 22:31:12
Hello,I'm trying to migrate from J2SE 1.4.2_05 to J2SE 1.5.0_04.My problem is with SSO to an Active Directory server.The following code runs perfectly if I am using the J2SE 1.4.2_05, but does only throw KrbException with message: KDC has no support for encryption type (14) if I run it with ...

Negotiate certificates from my servlet?

5480 byte By darngara at 2007-10-1 22:31:37
Hi I need to know how I can send to a server a client certificate.I磎 trying to access an API of Telefonica (in which I have to send an xml file and telefonica server response with another xml file), I can do it via web with Internet Explorer in which I have installed a certificate (it磗 a ...

Trojans and ****.........

2275 byte By Cartela at 2007-10-1 22:35:02
I have jre-1_5_0_04-windows-i586-p.exe on my computer.I like it and it works good BUT this happend the other day and I want to know to avoid this problem. I disabled MS VM in explorer and have permissions set to ask or denyDate 08/31/2005 Time 04:09IEXPLORE caused a general protection faultin ...

download file over https with p12 cert

4914 byte By AnjaDeva at 2007-10-1 22:42:35
Hi all,I have a huuuuuge problem. I ' ve searched the last 2 days for a solution but found... nothing that works. I want to download videos from a https location with my java app. To download these files a p12 certificate is required.What I have done so far:I have imported the p12 cert into my ...

Any tutorial or concepts on Form signing issues?

370 byte By kusanagihka at 2007-10-1 22:44:55
To all, I've come acrossed using e-certificates in a web application, but I have no idea just how the things should be done; should I use Applets to handle signing issues or use just a JSP to include the related logics or any other better suggestions?by the way, any tutorials or concepts on ...

Protection Domains with static permissions are improperly constructed

1635 byte By wgilstera at 2007-10-1 23:07:23
I'm pretty new to the java security model, but this doesn't look right. It seems as though ProtectionDomains with static permissions have symantically different functionality than those that are constructed with the "variant" constructor(CodeSource, PermissionCollection, ClassLoader, ...

Dowloading classes to an applet

1839 byte By _carl_a at 2007-10-1 23:08:49
I need to download new classes into my applet to be dynamically loaded at runtime.Issue is of course that the URLClassLoader and the sandbox prohibit this for obvious reasons. However, since the code to be downloaded would and does NOT violate any default policies provided on a standard java ...

Using a different GSSCredential for JNDI GSSAPI login

755 byte By mivz@spugium.neta at 2007-10-1 23:16:36
I have a server program which authenticates to a kerberos server using the GSSAPI Mechanisem. When I connect to my LDAP server using GSSAPI, it uses it's own credential by default. But what I want is to use a different GSSCredential, forwarded by the client to the server.I have tried creating ...

PasswordAuthentication

812 byte By BouncingSoula at 2007-10-1 23:18:09
I wanted to try and add some sort of password authentication to some code I have but im not sure how the user name and password is requested. There is a PasswordAuthentication class that holds a user name as a string and a password as a character array. Now the Authenticator class has some ...

The problem of DES

3598 byte By call_yyga at 2007-10-1 23:33:13
When learning Professional Java SecurityThen try to make a programme come up against a problem/***Source code*****************************************************import java.security.*;import javax.crypto.*;import java.awt.*;import java.awt.event.*;import java.io.*;class mi extends Frame ...

Cache Security

454 byte By Segmentation_Fault_of_the_Soula at 2007-10-1 23:34:21
Hi everyone,Would anyone out there happen to know where I could learn a little about the security implications of caching database data as Java objects in the server memory.My concern is that if some of the cached data contains sensitive data then there might be some way that someone could ...

How to use des/3des encyption

167 byte By venkadeshkumaresana at 2007-10-1 23:35:21
HiHow to use des/3des encryption for servlet.i m using Http protocol and form authentication, how to implement des/3des encryption.venadesh

Swing Document Security?

1673 byte By clnka at 2007-10-1 23:44:03
Hi all,I'm writing some software which uses the cryptographic API to read and write encrypted data. Obviously, we require all data to be nulled after it's used, and so the JPasswordField has a getPassword() method to this effect.However, there is one minor problem... That appears to be the ...

Authenticate using JAAS and LDAP

8024 byte By yajnas99a at 2007-10-1 23:51:21
Hi, I am trying to authenticate a user using JAAS against LDAP. I am able to hit LDAP, but failing when it comes to authentication. Yes, I have made sure the user and password are right. Here is my code and error message. Would really appreciate if someone can tell me what am I doing wrong ...

Urgent error - unable to find certs file

731 byte By FreshCookiea at 2007-10-1 23:51:27
Hi ,I am new to SSL programmingI have the following codeand getting the error======================================================IO Exception java.io.FileNotFoundException: certs (The system cannot find the file specified)Unable to listen on 443.java.security.KeyStoreException: Uninitialized ...

is there anyway to retrieve a serial number from a hardware in java?

172 byte By sloncea at 2007-10-1 23:52:42
If any one knows is it possible to retrieve a serial number from a hardware piece in JAVA ? I need to use it for security issues in my stand alone application, Thanx

command line jaas

481 byte By --jubs--a at 2007-10-1 23:54:26
I am trying out JAAS for the first time and i am trying to runa java file com.jaas.TestJaas.I cant seem to set the system property javax.security.auth.login.confg=jass.config.I run the file with the following command java -Djavax.security.auth.login.config=jass.config ...

During import: check if X.509 certificate matches private key

326 byte By bbschada at 2007-10-1 23:59:59
Hello,is there a way to check if an X.509 certificate matches a private key? Maybe this could be done by encrypting some text and trying to decrypt with the private key.Is there an existing method in the Java API to perform this check.Thank you for any replies/ help.Kind ...

jconsole & security manager

534 byte By gernotpa at 2007-10-2 0:01:12
In document " http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html"there's the sentence in the last line:"If your application runs a security manager, then additional permissions are required in the security permissions file."So, which permissions are required?Especially - I'm ...

Bypass a proxy server without modifying system properties

729 byte By Free_Developera at 2007-10-2 0:01:20
Hi all,I'm developing an application that have to bypass a proxy server. I'm using the classes URL and URLConnection. I have been serching how to do this and found many examples showing it by setting the system properties, like in System.setProperty("http.proxyHost", ...

NullPointerException when using UnixLoginModule......

3458 byte By ericher00@yahoo.coma at 2007-10-2 0:01:34
Hi everyoneI am running on Linux and I setup the UnixLoginModule. When I login, I get a NullPointerException. I am using the JDK 1.4.2 and I got this stacktrace.Login exception authenticating username user1javax.security.auth.login.LoginException: java.lang.NullPointerExceptionat ...

Linux and Keytool

478 byte By amenaphesa at 2007-10-2 0:06:05
I seem to have a very bizarre problem with keytool. I'm using Java toautomatically generate a new key using keytool, by using runtime.exec().There is a major problem, though, since it throws an exception that thekeystore file does not exist. Which is perfectly true, as I'm trying togenerate ...

ProtectionDomain getPrincipals does not hold the Subject principals...

2612 byte By DLS_SUN.COMa at 2007-10-2 0:09:15
All,I have the following scenario. I have been writing a custom security Policy. The implies method performs the following action:public boolean implies(ProtectionDomain protectionDomain, Permission permission){Principal[] principals = protectionDomain.getPrincipals();PermissionCollection perms ...

java.policy - does it need restart of all processes to take effect

344 byte By reachsatisha at 2007-10-2 0:14:54
I have to change java.policy in WebSphere. Do I have to restart all the servers running on that node (all Java Processes using that JRE) for the policy changes to take effect?This will force me to restart all the other applications running on different WAS server instances. Is there a way to ...