xml security - Digital Signature - sign digest value pre calculated

526 byte By 2407500518951768323a at 2007-11-27 7:10:38
Hi all,I'd like to perform a Digital Signature (sign) of an existing digest value pre calculated . Does anybody could please tell me some more about it?Looking at specicctions (apis) the signature is performed in one operation, within by given "object" to be signed, the method calculate the ...

scrollbar in Panel.....help

1644 byte By vivinda at 2007-11-27 7:11:00
hi.... i have to add images(picture) in Panel .because I have to add more pictures(image), scrollbar (or JScrollPane) will require please help me how to do. U can also help in respect of following program, Thanks.// <applet code="AnImageApplet" width="400" height="400"></applet>// ...

How to get scale to work properly on text

4320 byte By 4fingersa at 2007-11-27 7:11:28
I have been having problems scaling down text to fit inside a 5 by 7 grid as show here: http://forum.java.sun.com/thread.jspa?threadID=5181810Unable to get an answer I decided to simplify the problem I am having so I have come armed with a simple example and images.First off I used the ...

Image scaling problem

2872 byte By amishera2006a at 2007-11-27 7:27:10
Hello,I have been trying to scale an image to create a thumbnail. The thumbnail image size is around 200*200. The thumbnail is to be rendered on a web browser. My code is:public static byte[] getScaledImage(InputStream imageData) throws IOException {Image origImg = ImageIO.read(imageData);int ...

j_security_check and changing users/passwords

438 byte By torfua at 2007-11-27 7:27:36
I've got my login page working perfectly, but I want to be able to have users change their passwords.I've tried changing the conf/tomcat-users.xml file directly, but it seems that the user file must be loaded once when Tomcat is started, since any changes after that have no effect (eg. I ...

Who can tell me which directory the JSSE source code in?

124 byte By cyca at 2007-11-27 7:29:51
I get the source code of JDK5,but there are too many directories ,I don't get the source code of JSSE,I am beginner.

detecting object in images

171 byte By aneuryzmaa at 2007-11-27 7:32:18
Hi,how can I detect objects in images using java ?I need to detect movements of an object in consecutive images exported from a video.thank you

Area Info

80 byte By dantoniOHa at 2007-11-27 7:33:32
Hi. Is it possible to extract multiple Shape objects from an Area object?

Keystore and certificate and client application

1081 byte By warxsga at 2007-11-27 7:34:14
Hi all,I exported a certificate from the Internet Explorer of a customer of mine;i have been asked to specify a password and then i saved the certificate into a directory of my pc.Well, now i have to write a client application to connect to the site of my customer using his certificate.After ...

Problem with Graphics 2D scale and manual scale on multilayer. please help!

1293 byte By shaselaia at 2007-11-27 7:34:22
public void paintComponent(Graphics g){ Graphics2D g2d = (Graphics2D) g; if(image != null){g2d.scale(scaleFactor,scaleFactor);g2d.setComposite(AlphaComposite.getInstance (AlphaComposite.SRC_OVER, ...

Exporting a certificate...

224 byte By warxsga at 2007-11-27 7:34:37
Hi all,Is it right exporting a certificate from client using Internet Exoplorer ?If not what tool do i have to use?Whare the right steps to exporting the certificate ?Cheers. Stefano

Problem with drawing Swingcomponents over the Videocomponent

3161 byte By BlackCrazea at 2007-11-27 7:35:06
Hi there,I'm trying to draw a simple Swingcomponent over a running video - I read in the Forums for days - nothing helped. I don't know why it still don't work.LIGHTWEIGHT_RENDERER is already usedJLayeredPane is already usedPlease help me - I don't what I can do anywaypublic class ...

Password retriever application/tool

749 byte By pmohanana at 2007-11-27 7:35:08
Hi...,We have an application where the user can clink on "Forgot My password" link to retrieve his/her password. Right now we do ask a security question as set by the user when the user enters the user id. But going forward we want to send an email to the user with a link , so that the user can ...

250X increase in BufferedImage draw time from 1.5 to 1.6

6339 byte By compuwinna at 2007-11-27 7:37:30
I had a program running fine in 1.5, had 3-4ms to draw 45 of the image to the screen, for a large image scaled small before drawing. Now after 1.6, I'm getting 820 ms for the same thing, and -version:1.5 will return it to 3-4. Did something change from 1.5 to 1.6? drawing the loaded image to a ...

Why does we need ImageIcon instead of Image?

662 byte By amishera2006a at 2007-11-27 7:37:50
Hi,Why do you need ImageIcon in this case?Image origImg = ImageIO.read(imageData);origImg = origImg.getScaledInstance(newImgWidth, newImgHeight,Image.SCALE_AREA_AVERAGING);origImg = new ImageIcon(origImg).getImage();BufferedImage bimage = null;bimage = new BufferedImage(origImg.getWidth(null), ...

Decrypt SHA1?

662 byte By basti78a at 2007-11-27 7:38:40
Is there a way to decrypt SHA1? I have encrypted SOAP message's UsernameToken password: String sha1Hash = null; try {MessageDigest md = MessageDigest.getInstance("SHA1");byte[] digest = md.digest(text.getBytes());sha1Hash = new String(Base64.encode(digest)); } catch (Exception e) ...

Problem with scaling

1882 byte By amishera2006a at 2007-11-27 7:39:27
Hi,I was using the following code:InputStream imageData /*= .initialization code*/;try{byte[] bytes = FileCopyUtils.copyToByteArray(imageData);RenderedOp renderedOp = JAI.create("stream", new ByteArraySeekableStream(bytes)); // byte[]ParameterBlock pb = new ParameterBlock();pb.addSource( ...

Setting the system property javax.net.ssl.truststore

369 byte By warxsga at 2007-11-27 7:40:40
Hi all,I wrote a client application which sets the system property javax.net.ssl.truststore.Is the property valid for the client only ?I mean, i have to run the same client more times; every client has to use a different path of trustore and all client have to be run on the same computer.Any ...

Need a help for video conferencing project

364 byte By bindhu_11111a at 2007-11-27 7:41:16
Hi,i'm doing a video conferencing project . But Jim (JMStudeo) preference window shows only audio capture device . It doesn't display any video capture devices .I don't know why it doesn't displaying . is it need to be done anything extra to capture video devices using JMF. expecting an ...

Transmit and Receive RTP over the same session

654 byte By rtpa at 2007-11-27 7:41:40
Hi,I'm working on a voip client.I'd like to know if there is a methot to trasmit and receive a RTP flow over the same session.For example: suppose to have a client A and another client B.Client A has: ip 192.168.2.1 and port 22222;Client B has: ip 192.168.2.2 and port 33333;The flow should go ...

Keyboard Interaction

226 byte By psyfenga at 2007-11-27 7:41:54
I want to use some keys, such as arrow keys to change the line length drawn by java3d. And I don't want to use the scale method.How could I deal with it?Thanks,Message was edited by: psyfeng

Fitting a curve with Path2D

805 byte By James_Vagabonda at 2007-11-27 7:42:11
Given N ordered sample points on a curve, I want to generate a Path2D (or PathIterator) with as few segments as possible that "fits" my curve. The Path2D curve does not need pass through all the sample points, but the max distance, or alternatively the sum of the squares of the distances, ...

reading bmp in java 1.4.2

122 byte By JusteUneQuestiona at 2007-11-27 7:42:43
Hello i have pb for reading bmp files as ImageIO.read does not support this format. How can i do ?Thank you.

Illegal Image Size

2467 byte By necro_ignisa at 2007-11-27 7:43:19
Hi, having returned to basic J3D bits and bobs for a few years now and I'm having some issues loading a texture.After having read through a few tutorials I have put together the following code. It simply creates a QuadArray of 4 points, sets the texture coordinates (which I don't know if I ...

LDAP SSL Connection Error --javax.net.ssl.SSLHandshakeException: sun.secur

1378 byte By Surendra_Varmaa at 2007-11-27 7:43:48
Hello I am trying to connect to the LDAP server through SSL i have the certificate sent by the Ldap Admin i get the following exception.Any thoughts will b helpful***Thread-0, SEND TLSv1 ALERT: fatal, description = certificate_unknownThread-0, WRITE: TLSv1 Alert, length = 2Thread-0, called ...

Path does not chain with any of the trust anchor

648 byte By kbia at 2007-11-27 7:44:07
Hi,I got the exception when using CertPathValidator cpv = CertPathValidator.getInstance("PKIX");PKIXCertPathValidatorResult cpv_result =(PKIXCertPathValidatorResult) cpv.validate(cp, params);java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors at ...

painting rectangle at an angle?

447 byte By Spring85195a at 2007-11-27 7:45:34
Hi,There are 2 points, (x1,y1) and (x2,y2), a line is drawn before then using the drawline method, what I want to do it have a rectangle which will go from point (x1,y1) to (x2,y2).However, fillrect do not support any angle parameter and I can't find a method to the rotation.See the orange ...

Inverting a GeometryArray

377 byte By Vassimia at 2007-11-27 7:46:52
I've recently been playing around with the Java3D libraries to try and render a little game. I've figured everything out pretty much and I've gotten to the point where I have a GeometryArray for each room of the level but the problem is, when I play, the textures appear on the outside of the ...

Cryptography solution between browser and server without using HTTPs

1148 byte By subhrajyotia at 2007-11-27 7:47:02
Hi All, I am looking for a cryptography solution which I shall be using to encrypt the password being sent from the browser to the middle tier. My requirements are as follows :1. I need to only send the traffic in one way ie from browser to the java tier. So I guess I only need to generate 1 ...

Doubts about cryptography

2109 byte By TechnoSpikea at 2007-11-27 7:49:08
Hi to all. I'm new to cryptography, and although I've been reading about it and started trying to program with it I'm still having dificulty on grasping the concept of it.I intend to encryp (and decrypt) data (2 varchar columns) from a table in a database. I'm developing a new web page of a ...

HEX back to byte array while using AES encryption

1231 byte By manubhavea at 2007-11-27 7:49:18
Hello,I have downloaded the following code for encryption with AES standards.I noticed that the byte array is getting converted to hexa. Can anyone please guide me how to get a bye array back of the hexa value.Also, didn't understand why is the zero getting appended while converting to a ...

to check wether the give point is inside a ploygon

336 byte By raghavan_26a at 2007-11-27 7:49:59
Hi all , I want to implement a draggable polygon in java I was able to Implement for a line and for a box . For a polygon the set of values we take are not constant and the shape is also irregular to deside too . Can any one send me java code or snippet how to implement it .Thanks in advance ...

How to convert an image to a byte array?

133 byte By Kenrrnny_Xa at 2007-11-27 7:50:04
recently, i am doing a school project, is there any way to convert an image to store in a 3d byte array?thanks for help

Cipher initialization - when?

1355 byte By marcelschoena at 2007-11-27 7:50:49
I have server code which creates data encrypted with a 3DES key and signed with an RSA key constantly (it's basically some custom authentication service). In the original implementation, I had only one static Cipher object of each type (3DES encryption, 3DES decryption, RSA signing), to which ...

help with applet security feature

400 byte By stevenosea at 2007-11-27 7:50:50
I use a USPS web-based label software. When the java applet tries to print the label. A Security popup comes up with the question " this applet is trying to access the printer". A check-box to allow the access appears but 9 times out of 10 the software hangs up at this point. I can not place ...

JSSE server to work with two client each on different p12 certificate

378 byte By yixdsa at 2007-11-27 7:51:47
Is it possible for Sun's JSSE server (has two certificates imported using Firefox->tools->option->viesw certificates-> then import->backup to save the concatenated p12 certs, and two CA certs imported using keytool) to work with two clients on different p12 certificate each?If ...

what does realy it work ? class Config.java

2887 byte By garcota at 2007-11-27 7:52:53
i don't understand what it work and what is the content of din in DataInputStream din= new DataInputStream( bin);and content of dout in DataOutputStream dout= new DataOutputStream( bout);import java.io.*;import java.util.*;public class Config {private String pathPrefix;public String ...

how to validate certificate chain of cert stored in IE "Windows-MY" store

293 byte By jonhilla at 2007-11-27 7:53:08
hi i am developing an application where i need to access personal certificate from Windows-MY keystore of IE. but before using it need to validate the certificate chain of the certificate. how i can validate the chiain. if possible plz send some code reference.john

Player Media Time Listener

235 byte By muldergra at 2007-11-27 7:55:50
Hi all! I added a listener at my video player and i want to watch the media time of the player in order to show it at my own slider in real time... which ControllerEvent is it? Any example code?Thanx in advance! :)

How to remove an image after x seconds?

383 byte By deAppela at 2007-11-27 7:57:00
Hi,I've created an label with an image and what i want is that when i click on a button the image shows up and disappears after x seconds.I'm not sure if i should use new Thread or Timer/TimerTask for this.and i'm not sure how to paint something in the image that also dissapears at the same ...

H.264

44 byte By Jeyashreea at 2007-11-27 7:58:19
can JMF recognize H.264 video format?

Looking for RSA implementation using Java

291 byte By subhrajyotia at 2007-11-27 7:58:41
I am looking for RSA implemetation using Java . Can any one help me in finding one that I should be able to use out of the box .?Apart from that I also want to just port the encryption logic from java to java script. So if I get the same solution in java script than nothing like it .

DXF Reader

128 byte By Shafeea at 2007-11-27 7:59:01
Anubody has written or work on any DXF Loaders/ Readers..Need help cause I'm writting an application readinf DXFs

detecting objects

99 byte By aneuryzmaa at 2007-11-27 8:00:06
hello,how can I detect object in images using JAI ? how can I start ?thank you

Diffie-Hellman encryption/decryption help!!

470 byte By javaA-Za at 2007-11-27 8:00:46
I am new to Java Cryptography and PGP. I need to write a program to decrypt a file using "secret key ring" (".skr" file extension) and passphrase. This file is encrypted using Diffie Hellman algorithm (I have the public key that was used for encryption with me. Not sure if this is needed for ...

how to get CRL Distribution point of Certificate in Ascii String

553 byte By jonhilla at 2007-11-27 8:01:01
Hii have to get the CRL Distribution point from the certificate. i have to download the crl from the url in my application. fro that i need to read get the URL for the CRL.i am able to get the byte[] array of of the CRL Distribution Point. But dont know how to convert the byte array to Ascii ...

Sign (smime) javax.mail.Message

277 byte By czakoa at 2007-11-27 8:01:08
hi !I would like to sign created Message object. I know i have to use SMIMESignedGenerator from BC, but i need to calculate hash in my own way. I can;t figure where it is made in this BC class. I want to return javax.mail.Message object. Please help !czako

java3d 101 question

11189 byte By marco_wua at 2007-11-27 8:01:24
Dear all, I start to learn java 3d. I am trying to put multiple thing on one graph. I have no clue why the sphere is black in color, even I have set the appearance to be blue. Please help me to read the following code and tell me what problem on the sphere part. Thanks . I hope the picture can ...

getBytes() - Encoding Style problem

599 byte By George_Azzopardia at 2007-11-27 8:01:29
Hi people, I need to encrypt a password using SHA algorithm through the MessageDigest object. Initially, I need obtain the bytes of the password String in order to pass it to the update() method of the mentioned object. The problem is that the getBytes() method return different values on ...

Error Importing Certificate file Using Keytool

1821 byte By Surendra_Varmaa at 2007-11-27 8:03:53
Hello FolksI am trying to import a certificate file provided by our Ldap Admin,I get the following error Please let me know if you have an idea why am i getting it. Does the size of the Key file matter ? it s around 4kbC:\j2sdk1.4.2_08\jre\lib\security>keytool -import -alias ldapsecurity ...