Solved

compiling error. need help!!

Posted on 2002-03-31
1
186 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now