01: /*
02: * ServerProcess.java
03: *
04: * Brazil project web application Framework,
05: * export version: 1.1
06: * Copyright (c) 1999-2000 Sun Microsystems, Inc.
07: *
08: * Sun Public License Notice
09: *
10: * The contents of this file are subject to the Sun Public License Version
11: * 1.0 (the "License"). You may not use this file except in compliance with
12: * the License. A copy of the License is included as the file "license.terms",
13: * and also available at http://www.sun.com/
14: *
15: * The Original Code is from:
16: * Brazil project web application Framework release 1.1.
17: * The Initial Developer of the Original Code is: suhler.
18: * Portions created by suhler are Copyright (C) Sun Microsystems, Inc.
19: * All Rights Reserved.
20: *
21: * Contributor(s): suhler.
22: *
23: * Version: 1.3
24: * Created by suhler on 99/11/15
25: * Last modified by suhler on 00/12/11 13:32:47
26: */
27:
28: package com.sun.server;
29:
30: /**
31: * This is a wrapper around the native code used by the Java Web Server
32: * to set the effective user and group id's on Solaris.
33: * It expects the "server.so" file used by the
34: * <a href=http://www.sun.com/software/jwebserver>Java Webserver 2.0</a>.
35: * Make sure you rename the file <code>server.so</code>
36: * in the distribution to lib<code>com_sun_server_ServerProcess.so</code>, and
37: * put it where it will be found by <b>System.loadLibrary</b>.
38: *
39: * @author Colin Stevens
40: * @version %V% 1.3 ServerProcess.java
41: */
42:
43: public class ServerProcess {
44: static {
45: System.loadLibrary("com_sun_server_ServerProcess");
46: }
47:
48: public native static boolean setUser(String userName);
49:
50: public native static boolean setGroup(String groupName);
51: }
|