XML DSig, signing with external keys

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 ...

CAD Drawing Reading through 3d API

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.

Alternative to JMF

94 byte By yogeshjoshijia at 2007-11-27 9:30:09
1> Is there any alternative to Java Media Framework2> JMF is live or dead.

JMF security overcome

122 byte By yogeshjoshijia at 2007-11-27 9:30:11
How can i overcome security issue in JMF, when my applet is running on client machine and try to capture any device

Applets: Why the difference in java.version vs. java.runtime.version

1494 byte By naansofta at 2007-11-27 9:30:18
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 ...

JRE version that fix Java Web Start vulnerabilty

365 byte By kenshiro2000a at 2007-11-27 9:32:46
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 ...

Creating a Key from a Passwort using AES

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

create a key for AES from String

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

how to crop image in Java?

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 ...

Decrypting a byte-array who was encrypted by PBE

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) ...

createServerSocket second time

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 ...

error in running encryption/decryption using DES in Websphere Dev't Client

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 ...

login module

678 byte By Sunneke31a at 2007-11-27 9:37:48
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 ...

get an off-screen thumbnail from a webpage

1645 byte By pmagundeza at 2007-11-27 9:38:24
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 ...

HTTP traffic encryption with Kerberos (for Vista winrm)

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 ...

KeyStore load is Hang Up (SunPKCS11-GemSafe)

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 ...

Exception :JCE cannot authenticate the provider BC

1112 byte By LiuChanga at 2007-11-27 9:42:35
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 ...

XML Digital Signature Problem - Enveloping Signature

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 ...

Possible to get faster FPS with this code?

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 ...

splitting 3gp file in JMF

264 byte By HybridBoya at 2007-11-27 9:44:40
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......

check for liveliness of image captured.

188 byte By venkat24a at 2007-11-27 9:46:36
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.

Sun fingerprint database

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 ...

Unicode Characters & RC4-HMAC

1504 byte By matthias.ernsta at 2007-11-27 9:46:58
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 ...

Internal+External Data In One Digital Signature

454 byte By Frank_Natolia at 2007-11-27 9:46:59
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 ...

two java questions, JAR and MVC, please help

498 byte By ritchie_lina at 2007-11-27 9:48:23
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 ...

Installing the java unrestricted policy files outside the defualt locations

1586 byte By vinayss78a at 2007-11-27 9:48:42
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 ...

Don't have the right cipher suite

427 byte By jamesbmorrisjra at 2007-11-27 9:49:52
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 ...

few questions?

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 ...

Raw Stream To RTP Conversion-- Help required

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 ...

Questions about PKCS11

681 byte By Iceberg05a at 2007-11-27 9:51:22
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 = ...

Emergency! Help with flicker in applet!

417 byte By OriginalSup3rmana at 2007-11-27 9:54:09
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 ...

Generating IVSpec from previous encryption operation

213 byte By kcook_stla at 2007-11-27 9:54:18
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?

jar file

319 byte By kvrnsatisha at 2007-11-27 9:54:24
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 ...

Username and Password encryption

634 byte By hetal_giria at 2007-11-27 9:55:36
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 ...

VIDEO CONVERSION AND EDITING SOFTWARE

563 byte By Aristotle001a at 2007-11-27 9:57:08
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 ...

Help with GUI 4 mapping

375 byte By barakyesha at 2007-11-27 9:58:48
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 ...

JAAS Tomcat

795 byte By nantucketa at 2007-11-27 9:58:53
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 ...

displaying a 2d overlay on a 3d canvas

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

How to capture and save voice from microphone

111 byte By raman_swia at 2007-11-27 10:02:42
I'm beginner to JMF. I want coding for capturing and saving voice from microphone. Plz anybody help me.

help with rotate

1803 byte By barakyesha at 2007-11-27 10:02:46
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 ...

Linux certificate store

408 byte By javarocktheworlda at 2007-11-27 10:03:38
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 ...

Want to translate a part of the Image to the center of the Image

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...

Certificate Authority and server certitifcate .

242 byte By dynamicdhiraja at 2007-11-27 10:04:04
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

how to set fullsceen mode?

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 still have this "SHA1 with RSA" problem in Java (Sun, are you listening?)

1346 byte By jamesbmorrisjra at 2007-11-27 10:05:45
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 ...

Do I need to use repaint?

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

SOS

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 ...

Why has my Java3d applets stopped working on Vista?

420 byte By AstralVisualsa at 2007-11-27 10:12:30
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 ...

Polygon Line (Stroke Size)

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 ...

DataSink Problem

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 ...