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 ...
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>// ...
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 ...
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 ...
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 ...
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.
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
Hi. Is it possible to extract multiple Shape objects from an Area object?
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 ...
public void paintComponent(Graphics g){ Graphics2D g2d = (Graphics2D) g; if(image != null){g2d.scale(scaleFactor,scaleFactor);g2d.setComposite(AlphaComposite.getInstance (AlphaComposite.SRC_OVER, ...
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
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 ...
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 ...
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 ...
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), ...
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) ...
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( ...
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 ...
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 ...
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 ...
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
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, ...
Hello i have pb for reading bmp files as ImageIO.read does not support this format. How can i do ?Thank you.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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! :)
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 ...
can JMF recognize H.264 video format?
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 .
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
hello,how can I detect object in images using JAI ? how can I start ?thank you
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 ...
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 ...
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
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 ...
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 ...
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 ...