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 ...
190 byte By
bodepua at 2007-11-27 9:29:40
Hello.We are going to develop a construction management software that works via web. So we need to read AUTO CAD Drawings .So ant API's is thereThanksRam Prasad.
1> Is there any alternative to Java Media Framework2> JMF is live or dead.
How can i overcome security issue in JMF, when my applet is running on client machine and try to capture any device
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 ...
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 ...
118 byte By
Oleka at 2007-11-27 9:33:40
Hi,How can i generate a key from a String?The key must have the length of 16 bytes.regards
126 byte By
Oleka at 2007-11-27 9:33:41
Hi,How can i create a Key for AES using a string?The length of the byte-Array must be 16 bytes.Thx
858 byte By
eyadoa at 2007-11-27 9:34:46
Hello,I'm trying to crop an image which is saved in the hardrive. But when I run the program it gives me the following error message:java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0I checked the original image and its width= 1280 and Hight=960. It seems that the ...
2626 byte By
Oleka at 2007-11-27 9:35:46
Hi,I have a problem with the decryption of a Object encrypted with PBE...Here is the encryption code:private PBEKeySpec pbeKeySpec; private PBEParameterSpec pbeParamSpec; private SecretKeyFactory keyFac; // Salt private byte[] salt = {(byte) 0xc7, (byte) 0x73, (byte) 0x21, (byte) 0x8c, (byte) ...
861 byte By
yixdsa at 2007-11-27 9:35:47
I am working on a project which need to reinitialize SSLContext, then > from SSLContext I do factory = context.getServerSocketFactory(); before > I reinitialize the SSLContext for the second time, SSLServerSocket was > closed by invoking sl.close(). (sl is the instance to ...
849 byte By
misyela at 2007-11-27 9:37:17
Hello! I have a code used to encrypt / decrypt a string (password). I have already tested it using Netbeans and it is working. But when I tried to add the java code to an existing web project using Websphere Development Client,, javax.crypto.* is not recognized. Then I imported JCE.jar. The ...
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 ...
Hello everyone! This is my first post on this forums. I'm developing an application to get a thumbnail from a webpage, and save that thumbnail to a file. It has to be a "non-visual", off-screen appllication, because it will run on a machine with no screen. It has to render all, or almost all ...
479 byte By
bioforma at 2007-11-27 9:42:01
Hi everybody.I am trying to connect to winrm service using Kerberos authentication and there are no any problems with it. But this service allow(by default) only Kerberos or Negotiate encrypted HTTP message. Do anybody know how to do it ? I am using standart HttpURLConnection class but after ...
1276 byte By
Cyrillea at 2007-11-27 9:42:28
Hello,I was trying to use my USB Token certificate with some lines of Java.But when it comes the line theKeystore.load() the application hangup and the CPU load stay at 100% until I press Contrl-C to stop the application.After that I've a try with keytool: keytool -keystore NONE -storetype ...
Hi all,I tried to encrypt some data using BC,when I load the privatekey and password ,an exception was throwed:Exception in thread "main" java.io.IOException: error constructing MAC: java.security.NoSuchProviderException: JCE cannot authenticate the provider BCat ...
983 byte By
zada_bha at 2007-11-27 9:43:26
Hi there,While i was running the sample GenEnveloping class, i got this error:>>java.lang.NoClassDefFoundError: java/net/URISyntaxExceptionat org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newReference(DOMXMLSignatureFactory.java:56)at ...
5806 byte By
Jasdara at 2007-11-27 9:43:31
This is a stripped down version of the code I've been using to run my game. It's basically a 1024x768 frame being run in fullscreen mode and scaled to fit any resolution with some 2d graphics put on top of it. On my machine I get 60 fps just like this, but it drops a lot as soon as I add any ...
I want to split a .3gp video into 2 separate .3gp file using java. so is it possible to do so? the .3gp file structure will also be a great help. i searched in google but did not find any suitable specification. thus if any one help, it would be great......
hai,i want to check if the captured image is lively taken from webcam i.e person's face lively captured or image taken from photo just placed infront of webcam and captured.
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 ...
I just stumbled over an issue w/ unicode characters in passwords.I extracted my machine's account password using the windows LSARetrievePrivateData API using the Win32 Python Extensions. Result: was a unicode string with one catch: it contained the character '\ude09', a lower surrogate ...
Is it possible to generate a single digital signature for both external data (a file) and internal data (XML metadata relevant to the file)? From the Java Digital Signature API documentation, it would appear that "detached" can handle external data OR internal "sibling" data but not both. And ...
1, how are .jar files used within java enterprise development?2 if an application ha1, how are .jar files used within java enterprise development?2 if an application has been written using MVC for the web what parts(classes) could not be reused if the application was to be transfered to a ...
In our application, we are making use of java based gpg encryption/decryption. For this we are using the Bouncy Castle library which provides a java implementation. For using this, it needs the unrestricted policy files for java. Scenario A: On my desktop I downloaded the policy files and ...
I obtained a CSR from GoDaddy. The only cipher suite GoDaddy supports is "SHA1 with RSA", which is not in the list of Java 1.6.0_01 supported ciphers.Can I get "SHA1 with RSA" for Java somewhere?Should I revoke by CSR from GoDaddy and get a CSR from somebody who can provide me with a ...
597 byte By
LLLa at 2007-11-27 9:49:57
hello guysfirst: Is it possible to save/write incoming RTP streams ( Transmitted video frames) to local file? plz help " code, hints, suggestion, .... ect"second: I m trying to mix Swing GUI "JMenu" with AWT component which JMF Player is using. The visual component of JMF ovelaps the Swing ...
386 byte By
Kalvin1a at 2007-11-27 9:51:03
Hi all. My project requires that i am getting a raw video stream e.g RTMP Flv Stream from Flash Media Server.Now i have to take this stream and convert into an RTP Stream (RTP Packetization) so that i can forward that to original requester.My module is working as an interworking unit.Any help ...
Hi,Everybody,when I try to access smartcard by pkcs11 ,I got a problemthe exception is :--Exception in thread "main" java.security.ProviderException: SunPKCS11 requires configuration file argumentand my code :public class Test {public static void main(String[] args) {String strPth = ...
I have used the bufferstrategy technique before and I know all about double buffering and all, but I normaly ama programming with Frames and Canvas instead of Applets. My applet is flickering as I update the images on the screen can a bufferstrategy be used? Can anyone help me solve this ...
Using "AES/CBC/PKCS5Padding" encryption; was thinking there was a way of obtaining a good random IV for the next encryption operation from the previous. Anyone know how to get this byte[] or parameter spec?
hi friends,iam loading a *.obj file in my program ...iam using import com.sun.j3d.loaders.objectfile.ObjectFile;error : cannot access com.sun.j3d.loaders.objectfile.ObjectFile;may be i need some jar file to place in classpath. can anyone send a link to download the file.with ...
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 ...
I have recorded lots of INTERESTING videos while working as lifeguard this summer. Most of them are just 3 minutes raw AVIs of about 100MB in size. Because my digital cam does not have any built-in compression they are huge in size. I am looking for some Video Conversion and Editing software ...
hi all,i created a gui 4 mapping right now i have a clean picture which is implemented as a JPanel and i want to make the drawing on it ,can someone pls give me an example how can i put a little cruiser on it which will describe the sensor and how can i draw points on the picture which will ...
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 ...
125 byte By
aaa801a at 2007-11-27 10:00:34
how can i display a image like a interfaceon a 3d canvasive tryed imageoverlay but it doesnt work for me
I'm beginner to JMF. I want coding for capturing and saving voice from microphone. Plz anybody help me.
hi,im trying to rotate a rectangle,but when im doing so it not appear where the first 1 did here is my code pls tell me what is the problem and how can i rotate it and its center will b where the first one is,thx.import java.awt.Graphics;import java.awt.Graphics2D;import ...
Hi All,i create one small application for signing and verification on windows.and when same application i try to run on Linux, it not show certificate in cert store. because cert store i specified is of Microsoft. keyStore=KeyStore.getInstance("Windows-My");So same how we do in Linux....?Plz ...
270 byte By
yatrika at 2007-11-27 10:03:55
I am developing a tool to zoom user specified area.For this I have bounds of the user selected area and bounds of the image. Now I want to translate center of the user spec. area to the center of the image...but dont know how to do this programmatically...
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
4301 byte By
Peregrina at 2007-11-27 10:05:41
how to set fullsceen mode for this player? import java.awt.*;import java.io.File;import javax.media.*;import javax.media.protocol.DataSource;import javax.swing.*;public class PlayFiles extends JFrame implements ControllerListener{private Container cont;private JPanel jPPlayer = new ...
I posted this (in bold) a few days ago:I obtained a CSR from GoDaddy. The only cipher suite GoDaddy supports is "SHA1 with RSA", which is not in the list of Java 1.6.0_01 supported ciphers.Can I get "SHA1 with RSA" for Java somewhere?Should I revoke my CSR from GoDaddy and get a CSR from ...
199 byte By
ardmorea at 2007-11-27 10:06:24
I designed a Combobox, when I click one item, the code will plot the same polygon with a different color. The plot part is a separated method, do I need to use a repaint() method?Thanks
2559 byte By
terry261a at 2007-11-27 10:10:09
can anyone help me sort out the problem i have. i create a square and want to drag it to somewhere according to position of mouse. it works, but not what i want to. Here is the code, please have a look at it.import java.awt.*;import java.awt.event.*;import javax.swing.*;import ...
I made a collection of 3d applets a few years ago for my site http://www.astralvisuals.comThey work on XP, but when I test them on Vista, they don't work anymore.After the applet has printed out "applet started" the browser window crashes. Try the first applets on this ...
7353 byte By
Jona_Ta at 2007-11-27 10:12:58
Hello,A friend in this forum once helped me to sort out a problem in the code below. The problem then was that I wanted to increase the stroke size of polygon lines. The polygon points represent cities. The example then was based on 2 cities and the code worked. Now I increased it to 3 cities but ...
6326 byte By
Kalvin1a at 2007-11-27 10:13:08
I have been searching this forum for last 3 days and i have seen lots of topic about DataSink creation problem when we try to save an RTP Stream to a file.I am trying to save an incoming RTP Video stream to an avi file but not been able to do so. My code is.This is in one Class and Media Locator is ...