Solved

compiling error. need help!!

Posted on 2002-03-31
1
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

691 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