Solved

assertPermission

Posted on 1998-10-30
4
186 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 50 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…
Suggested Courses

737 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