?
Solved

assertPermission

Posted on 1998-10-30
4
Medium Priority
?
188 Views
Last Modified: 2012-05-05
How do I call the assertPermission function, what do i have to import?. I work with jdk1.1.5
I want to create a socket to localhost (=127.0.0.1) in IE4.0, I tried to set the security setting in IE4.0 but it didn't work.
0
Comment
Question by:ahannink
[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
  • 2
4 Comments
 

Author Comment

by:ahannink
ID: 1226674
Edited text of question
0
 
LVL 2

Expert Comment

by:shchuka
ID: 1226675
You realize that you HAVE to sign your applet in order to be able to do it at all - right?
0
 

Accepted Solution

by:
sreedharK earned 100 total points
ID: 1226676
Here is how you can call it :
    PolicyEngine.assertPermission(PermissionID.NETIO);
If you use this code, you need the SDK for Java to compile the code.  
you can just take the com.ms.security package, put the package in the classpath and imoport the package in your code and compile it.
OR
Install SDK for java from Microsoft(It's free) and run the executable file classR or classD. You'll get the package or simply use the compiler jvc that comes with sdk for java..
0
 

Author Comment

by:ahannink
ID: 1226677
JDK1.1.5 is used to compile the code. So the import statement is necessary. But also take care you've put the IE classes into your classpath.
Most of the time they are allocated in Windows\java\classes\classes.zip
The comment of shchuka is true the applet must be signed.
Thank you for answering this question
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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 …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

771 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