I get the above error when i access it from a client machine.
When i have the Server as localhost and cleint access from the same PC has no problem code works fine.
bea/jdk131/jre/ext/ i have copied all four files as bea/jdk131 is the JAVA_HOME path.
Also i have made this jar downloadable along witht the client program using JSP
<PARAM NAME="cache_archive" VALUE="
i still get the above error What is the mistake i am doing?
Kindly help out.
Code is as follows!!
KeyGenerator kg = KeyGenerator.getInstance ("DES");
kg.init (new SecureRandom ());
SecretKey key = kg.generateKey ();
SecretKeyFactory skf = SecretKeyFactory.getInstance ("DES");
Class spec = Class.forName ("javax.crypto.spec.DESKeySpec");
DESKeySpec ks = (DESKeySpec)skf.getKeySpec (key , spec);
ObjectOutputStream oos = new ObjectOutputStream (new FileOutputStream ("C:/e_Communicator/Auth/keyfile"));
oos.writeObject (ks.getKey ());
Cipher c = Cipher.getInstance ("DES/CBC/PKCS5Padding");
c.init (Cipher.ENCRYPT_MODE , key);
CipherOutputStream cos = new CipherOutputStream (new FileOutputStream ("C:/e_Communicator/Auth/Authfile") , c);
PrintWriter pw = new PrintWriter (new OutputStreamWriter (cos));
String input = jtx_UserID.getText () + ":" + jtx_UserNM.getText () + ":" + jtx_UserKey.getText () + ":" +
entitySetCurDate.getValueAt ("CURR_DATE").toString ();
oos.writeObject (c.getIV ());