Solved

compiling error. need help!!

Posted on 2002-03-31
1
189 Views
Last Modified: 2010-03-31
Hello,
anybody can give me a clue on how to solve this?

error message:
SSLInfo.java:70: incompatible types
found   : java.lang.Object
required: java.security.cert.X509Certificate
                   cert = req.getAttribute("javax.servlet.request.X509Certificate");
--
the snippet code =
 java.security.cert.X509Certificate cert;
cert = req.getAttribute("javax.servlet.request.X509Certificate");
--

i get this snippet from iplanet documentation. and it gives me compiling error.please help!
0
Comment
Question by:anil_80
1 Comment
 
LVL 6

Accepted Solution

by:
kotan earned 50 total points
ID: 6909544
You need to cast the return object to X509Certificate.

java.security.cert.X509Certificate cert;
cert = (java.security.cert.X509Certificate)  req.getAttribute("javax.servlet.request.X509Certificate");
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jar file executable 12 58
Groovy problem when using SOAPUI : DispatchException occurred 7 58
mysql jsp example issue 32 48
Java: anonymous class 4 29
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question