# Security manager

Henrik Nielsen (dm96309@edb.tietgen.dk)
Wed, 25 Nov 1998 20:12:51 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jean-Noel GADREAU: "JCE / JCA"
- Previous message: Jason Johnston: "Help, javakey keeps crashing"

Dear SUN

We are 2 guys, who are doing ouer final test as 'datamatiker' (a danish
computer education).
Ouer system have been implemented in Java, but we have some problems
using datagram-sockets.
The system works as follows:
2 computer are connected via an Ethernet link. The first i an Pc with
Windows 95 as operation system,
the second is a Sun server with a web-server(AOL), and a Ingres database
installed. The Sun server also serves
as an robotic controller (We are doing the project for a ship yard, who
uses robotic controlled welding).
Ouer system consists of two parts: A klient part and a server part.
Those two parts communicates via Datagram-sockts.
(Originally we intended to use RMI, but we couldn't get a prototype work
right. Maybe, because there was a bug in the
older versions of JDK, which has been corrected in the 1.1.7 version.
REF: Bugparade JDK 1.1.7).
>From the client maschine the user downloads an applet (The client part)
from which he can make requests in the database
via the server-part on the Sun-server. The result is written in a
HTML-page, which is placed on the web-server,
located on the Sun-server. The klient-part recieves a message from the
server part that it can update the klient-browser
with the result. When sending requests to the server-part we get
security-exceptions. We have then tryed to find out how to
set the security-manager (give permission) so it would allow us, to use
datagram-sockets. But the only information we could find
was about how the security works, not how to code a permission to the
security-manager.
When using RMI you grant permission with the line:
System.setSecurityManager(new StubSecurityManager); but instead of using
an
instance StubSecurityManager what should we use? Can you provide us with
an code-example?

Henrik Nielsen

- Next message: Jean-Noel GADREAU: "JCE / JCA"
- Previous message: Jason Johnston: "Help, javakey keeps crashing"