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 ...
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 ...
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
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
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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, ...
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
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. ...
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 ...
Hi, I want to know how to use both the JDK and JMF at the same time, please help.
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
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
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 ...
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 ...
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 ...
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 ...
Could you please gimme an example on how can i retrieve a TIFF's comment?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
59 byte By
KappeSra at 2007-11-26 21:14:37
Please send me the forum link for Sun Access Manager
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.
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 ...
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!!
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
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 ...
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 ...
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: ...
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