?
Solved

compiling error. need help!!

Posted on 2002-03-31
1
Medium Priority
?
193 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 200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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