Solved

assertPermission

Posted on 1998-10-30
4
183 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 86
HashTable highest marks enumeration alternative 9 39
throw exception 21 44
ejb on wildfly 5 20
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

803 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