signature constantly fails..(what getInstance?!?)

4601 byte By panosjavaa at 2007-11-26 20:45:03
hey all,i have created a certificate and a private key and stored them in a file with the following command on the keytool :C:\javaProjects\CryptoProject07>keytool -genkey -alias Client01 -keyalg RSA -keysize 1024 -dname "CN=Client01 [...]" -keypass blah -validity 360 -storepass blah ...

HTTPS connection to a secure server from Java program

4129 byte By Sozzleda at 2007-11-26 20:45:38
Hello all, I hope someone can help with this.I've got a Java program that I am trying to get to connect to an external server. The program is running on my local development box, and I am using Rational Application Developer. To run the program, I'm right clicking the main class, and running ...

capturing photo and signature

157 byte By AlliRwegaa at 2007-11-26 20:46:58
I want to add to my application ability to capture photo from any USB camera and signature from signature pad.there someone can help me on this

Check system capabilities

138 byte By Wicea at 2007-11-26 20:47:21
HiI want my program to check which OpenGL version is provided on the system it runs. How can I do this?ThxWice

Where is com.sun.net.ssl.internal.ssl.Provider in 1.4.2_13?

917 byte By ljea at 2007-11-26 20:47:26
I have an application that makes use of the com.sun.net.ssl.internal.ssl.Provider class in JSSE for SSL communication. This application compiles and runs just fine under _05 and _09 versions of the JDK./JRE. However, after installing the _13 version of the JDK, this class can no longer be found ...

javax.net.ssl.SSLProtocolException: java.io.IOException: Parse UTC time, in

8331 byte By HKT100a at 2007-11-26 20:49:28
Hi,I am seeing the following exception while negotiating the handshake.Any insight or thoughts will be very helpful.Thanks.javax.net.ssl.SSLProtocolException: java.io.IOException: Parse UTC time, invalid offsetat com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1003)at ...

Custom ProtectionDomains

792 byte By JNooreza at 2007-11-26 20:49:53
I need to build a database application where some actions can only be performed by certain users. However, I found that using a policy file with principal entries can be insecure, because anyone user could go in and edit their prinicpal entries and give themselves AllPermissions. So, is it ...

Need help: BufferedImage and zooming

11486 byte By hardc0d3ra at 2007-11-26 20:50:14
please help me understand what i am doing wrong. i am having a hard time understanding the concept behind BufferedImage and zooming. the applet code loads an image as its background. after loading, you can draw line segments on it. but when i try to zoom in, the image in the background remains ...

Write(Export) the RTP Stream from a SIP Call to an audio file

5041 byte By jyc5131@hotmail.coma at 2007-11-26 20:50:40
I am working on telephony system that need record each call to a file.I got the RTP Stream in ReceiveStreamEvent handler and start to recordthe problem is i got a file and play it but there are any sounds when i set FileTypeDescriptor.WAVE and AudioFormat.ULAWI try out the ...

need some help..Newbee

533 byte By Deo_Zonea at 2007-11-26 20:52:16
what is the difference by seting the keystore, trust store with the System.setProperty() or by creating them as....KeyStore ks = KeyStore.getInstance("JKS");ks.load(new FileInputStream(keystore), keystorepass);KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");kmf.init(ks, ...

How to get a certificate from ".p7b file?"

259 byte By Gangotri.a at 2007-11-26 20:52:33
Hi Friends, I am very urgently need a way to get the certificate from a .p7b file, or if anybody can provide a code sample for verifying a .p7b file will be useful; I am using bouncy castle classes.Thanks in advance,Gangotri

how to update?

1578 byte By catchmea at 2007-11-26 20:54:20
I have a canvas frame where when user clicks 1st time I store that point in an array...when user clicks 2nd time I store the 2nd point again so on ...and I call repaint method in the 2nd click mouse clicked().Now in paint I display the lines...But till the time I press the mouse for a third ...

Checksum failed and some newbie questiions

3540 byte By joseDeva at 2007-11-26 20:54:34
Hi people,I have tried the GSS-API without JAAS tutorial for java 1.5 at http://java.sun.com/j2se/1.5.0/docs/guide/security/jgss/tutorials/BasicClientServer.html with that config:1) Environment config:- JKD 1.5.0 update 11- Windows XP pro against Active Directory on a Windows Server2) The ...

cannote receive the symmetric key...:(

2587 byte By panosjavaa at 2007-11-26 20:54:47
hey everyone,i am using a pub/priv key pair to exchange messages from a client to a server using certificates. There comes a time when i want to send a symmetric key from the server to the client and switch to symmetric encryption. This packet should contain the symmetric key signed and ...

Adding Audio To Video

1047 byte By DerekHartleya at 2007-11-26 20:55:24
Hi, I realise that this is a relatively common problem and dutifully have read the relevant threads on the forum.Quite simply, I wish to add audio (wav file) to a video (MPEG format). My original plan had been just to have two players and add one as a Controller of the other and play them that ...

Default Password for the

353 byte By MarkR3a at 2007-11-26 20:57:19
Hi,I'm looking for the default password of the trusted.certs keystore. I want to import a certificate into this keystore with keytool, but it doesn't work.I already know that the default password of the cacert keystore is "changeit" but this pw doesn't work with the trusted.certs ...

physics animation in Java 3D

310 byte By martha_ezva at 2007-11-26 20:57:30
I work in a project in java 3D, and i need know wath library can I use for simulate:- gravity- movment- and forceis someting like a car, if tha car has a velocity and do collision with a wall, wath hapend? i need see all the efects of movement, gravity and force that ...

Difference between manual resize and repaint, invalidate, validate etc etc?

1825 byte By Java-is-musica at 2007-11-26 20:59:01
Using Jdk 1.5 and under windows XP I am drawing directly in a JPanel.And thus creating a drawing of my own when the system calls:public void paintComponent(Graphics g) {Graphics2D g2 = (Graphics2D)g;Line2D lineInArrow = new Line2D.Double(. . . );g2.draw(lineInArrow); Ellipse2D ellipse = new ...

Combining java2d and java3d

242 byte By hellcittya at 2007-11-26 20:59:31
I want to make a shape in java3d (a cube, let's say) and use java2d to place graphics on the surfaces of the cube (I already have a body of code to do the 2d drawing that I don't want to convert to java3d). Is there a way to do this?

j_security_check authorization

322 byte By ScreenNameTakena at 2007-11-26 20:59:40
Hi, I hope im in the right forum, how can i forward a authenticated user to the same login page if the user is not authorized. If the user is not valid, there is a error message shown in my login.jsp, but how can I do it if the user is valid but not authorized, and not throw a HTTP 403 ...

Single Sign On using Kerberos and Active Directory

5057 byte By michael_623a at 2007-11-26 21:01:36
I am attempting to write a proof of concept of Single Sign On using Kerberos and Active Directory.I have searched through these forums and found several suggestions which I have attempted to use, in fact my code snippet below comes from these forums.I have set the registry setting ...

Problem Displaying Video Component...

1886 byte By DhruvaSagara at 2007-11-26 21:02:42
I am using the following code for displaying the video of a media file.videoWindow = new JFrame();JPanel panel=new JPanel();Component video = player.getVisualComponent();panel.add(video);videoWindow.add(panel, ...

3DES encryption

204 byte By ochomoonyangoa at 2007-11-26 21:03:18
Hello All,Does someone have a sample code on 3DES encryption?I need help. I can use single DES well. Is there a way I can put my Single DES to work for 3DES?thanksochomo

Problem creating a Provider from a file inside the jar file

5017 byte By JuanAntonioa at 2007-11-26 21:04:02
Hello everyone. I need help. I am trying to add a PKCS11 provider, but the dll file for this provider needto be inside of the jar file. I looked for how to find a file inside the jar, its path. That part of theprogram seems to work, becasuse when I print on screen the path, it seems correct. ...

SSL Client Certificates

562 byte By smithsaa at 2007-11-26 21:04:36
We all know that an SSL server certificate's Common Name contains the domain that's being protected. But what is in the Common Name of an SSL client certificate? All I can find is that it is the "identity" of the entity that owns the certificate, which is very vague. I know that if the client ...

New to JMF please help me out.

88 byte By Consideratea at 2007-11-26 21:05:02
Hi, I want to know how to use both the JDK and JMF at the same time, please help.

Image Encryption

165 byte By suddena at 2007-11-26 21:05:10
Hello, can DES,3DES or AES be used to encrypt .gif image files?Is there a link that provides the code for any of the mentioned algorithms.thanks

How to compress the frame/buffer . Encoder ?

210 byte By VinsonInNovema at 2007-11-26 21:07:34
I have get the frame/buffer by using codec. (FrameAccess.java) I found the buffer is too large,so I want to compress them . How can I do it ?could you guys give me a solution ?Thanks

why certificate.verify(PublicKey) returns void?!

879 byte By panosjavaa at 2007-11-26 21:07:35
Hey all,i have a question that seems silly but i cannot quite get it...i have a certificate and i would like to verify it with the public key of the issuer..so i 've tried to do the following simple thing... boolean certificateValid=false;X509Certificate ...

signature fails..some times!!!!

848 byte By panosjavaa at 2007-11-26 21:07:41
Hey all,i am using asymmetric encryption and rsa to create a signature for a msg (hash it and encrypt it with my private key) and then encrypt the msg with the public key of the receiver.currently i have a client and a server class and i test them in my machine using the localhost. The ...

Crop an Image object to create smaller images from it...

755 byte By insomniaca at 2007-11-26 21:07:50
Hi all,I am trying to figure out which one of the following 2 methods of loading several images will be faster, or is it going to be the same...1. Load 50 PNGs in 50 Image object (an array of Images), or2. Load 1 large PNG (which has all these 50 objects/ regions) and then use CropImageFilter ...

Muskaan and srivatsn

854 byte By Spaniana at 2007-11-26 21:08:39
hi,Sorry to name the people explicitly.., The code given by both of u worked really well, but I have some small problems now.., My media player contains jtable in the nowplaying tab, which will hold all the items to be played, Every thing works well with that. But I have the following few ...

TIFF - get metadata

81 byte By derbeerka at 2007-11-26 21:10:17
Could you please gimme an example on how can i retrieve a TIFF's comment?

Cannot get devices

312 byte By fordfroga at 2007-11-26 21:10:19
Hi,I cannot get devices using CaptureDeviceManager.getDeviceList(null) in my code. This returns just empty vector. If I run JMFRegistry and click Capture Devices -> Detect Capture Devices, I get JavaSound audio capture. Does anybody know what am I doing wrong? I am on linux running ...

Can we fulfil our internal CA requirement using keytool?

614 byte By Legolas.wa at 2007-11-26 21:10:50
HiThank you for reading my post.is it possible for us to fulfil all of our requirement to test SSL stuff using keytool?for now what i can do is:create a keyimport/export it into cert / csr (pem)Why we need to provide the csr to a CA to sign it for us?Does it really required to send a CSR to a ...

Newbe with RTP+JMF

3685 byte By Max_Ha at 2007-11-26 21:10:51
Hi, since a couple days I try to get familiar with the JMF to transmit a data stream via RTP. Therefore I tried to use the Example 10-1 from the website http://java.sun.com/products/java-media/jmf/2.1.1/guide/RTPSending.html#107976But, when I try to compile the code like this, java does not ...

displaying a basic sphere

2667 byte By moonraker928a at 2007-11-26 21:11:48
hi guys..i am new to java3d need help to solve a rudimentary problem - displaying a sphere on the screen...following is the code i have so far:import com.sun.j3d.utils.applet.MainFrame;import java.awt.GraphicsConfiguration;import com.sun.j3d.utils.geometry.*;import ...

Multicasting cannot receive data, please help.

1949 byte By sunfana at 2007-11-26 21:12:31
hello fellow programmers. I am also having the same problem. I can receive only on my pc, but cannot receive any stream on the lan connected pc. I do get a newparticipant even for every client, but the receive stream event never occurs. Pl help. I am using rtpmanager implementation, and ...

Storing secret keys in a keystore

1083 byte By dosa at 2007-11-26 21:12:37
Hello,I want to store a secret key generated like this for exampleKeyGenerator keyGenerator = KeyGenerator.getInstance("AES");keyGenerator.init(128);SecretKey myKey = keyGenerator.generateKey();KeyStore.SecretKeyEntry skey = new KeyStore.SecretKeyEntry(myKey);in a Java KeyStore. This key should ...

3Des which padding and mode?

250 byte By panosjavaa at 2007-11-26 21:13:25
Hey all, a simple question, when i use the cipher.getInstance("DESede") which exactly mode of 3des is used and which padding scheme? do you have any recommendation of which one should i use and which one should i avoid?thx

Game development (2d)

193 byte By raven_saiza at 2007-11-26 21:14:32
I'm new to java and i need to do a 2d game(like sim date)... can anyone tell me what i need to make things possible? like do i need to use this stdGame thing. any help will do... please

Is there a Forum for Sun Access Manager

59 byte By KappeSra at 2007-11-26 21:14:37
Please send me the forum link for Sun Access Manager

How to find the end of a playback

181 byte By Spaniana at 2007-11-26 21:16:19
hi,Once I invoke the start() method of the Player object, playback begins without blocking. So, how do I determine when the playback of the current track is completed.

Slove!!! how to convert BufferedImage Object to byte[]

543 byte By satyasunil_java@yahoo.co.ina at 2007-11-26 21:17:08
Hi All,I need to convert BufferedImage Object o byte[] variableBufferedImage bi=new BufferedImage(image.getWidth(null),image.getHeight(null),BufferedImage.TYPE_INT_RGB);Graphics2D imageGraphics=bi.createGraphics(); imageGraphics.drawImage(image,0,0,null);BufferedImageOp op=new ...

Class path setting for JMF

278 byte By zoheb_ha at 2007-11-26 21:19:16
I'm new to JMF never ever worked on it before... and now i'm currently stuck up.... i cant configure JMF have no idea how to go about the class path settings and the whole procedure involving it......I have also gone through the JMF setup page but in vain....plz help!!

Win Media Player from JMF...

258 byte By Salil.Siddhayea at 2007-11-26 21:20:00
Hi,I am new to JMF. I am currently developing a p2p based video streaming project and would like to invoke Win Media Player or Flash Movie Playre from the Java app..Pleasen help / advice / suggest...Thank you.Salil.Siddhaye

problem with splitpane

1391 byte By zamprognoa at 2007-11-26 21:20:41
The scenario is as follows:I have a class that extends JApplet with one SplitPanel (JSplitPane) added like this:getContentPane().add(new SplitPanel());in createAndShowGUI method.The SplitPanel has one JPanel to each side of it.Pressing a certain key toggles the left one, wich contains a setup ...

Drag and drop using JLayeredPane

910 byte By Wojciech_a at 2007-11-26 21:20:44
Hi,This is my very first post, so hello everyone!I am writing a game of Scrabble using - of course - Java. As I am trying to implement drag and drop, I decided to use JLayeredPane as the board and another JLayeredPane as the rack. Both of them are made of JPanels However, it doesn't work as ...

Video capture and streaming using JMF

325 byte By Samujjala at 2007-11-26 21:20:59
I want to code a applet to capture video data from my webcam and broadcast it live on LAN using JMF on a website .I would be glad if anyone can explain me the work flow for it or provide any source code.my email id is samujjal@hotmail.comThank You in Advance.Message was edited by: ...

How to get public client ip with RMISSLServerSecuritySocket

140 byte By awersona at 2007-11-26 21:21:00
How can I get the public client ip in the server using RMISSLServerSecuritySocket?I磎 using the class RMISSLServerSocketFactory