01: // @(#)Rules.java 1.1 00/02/08 Copyright (c) 1999 Sun Microsystems, Inc., All rights reserved.
02:
03: package com.sun.portal.netlet.servlet;
04:
05: import java.util.Vector;
06:
07: public class Rules {
08:
09: public String name;
10:
11: public String url = null;
12:
13: // whether to down load the applet through loopback
14: public boolean loopback = false;
15:
16: public String serverLoopbackPort = null;
17:
18: public String clientLoopbackPort = null;
19:
20: public String loopbackServer = null;
21:
22: // may be multiple port rules
23: public int ruleCount = 0;
24:
25: public Vector lport = new Vector();
26:
27: public Vector dport = new Vector();
28:
29: public Vector dhost = new Vector();
30:
31: boolean isExtend = false;
32:
33: /*
34: * Added by Rajesh T - Modifed Rule format for Pluggable Cipher Rule format
35: * is RuleName^ALGO^cipher1+cipher2...
36: * @ for Lihue @ date 28-12-2001 isAlgoUserConfigurable is set to true if
37: * ALGO keyword exists
38: */
39:
40: public Vector algorithms = new Vector();
41:
42: public boolean isAlgoUserConfigurable = false;
43:
44: public String toString() {
45: String s = "{ ";
46: s += "name=" + name + ", ";
47: s += "algoList=" + algorithms.toString() + ", ";
48: s += "isAlgorithmUserConfigurable=" + isAlgoUserConfigurable
49: + ", ";
50: s += "url=" + url + ", ";
51: s += "loopback=" + loopback + ", ";
52: s += "serverLoopbackPort=" + serverLoopbackPort + ", ";
53: s += "clientLoopbackPort=" + clientLoopbackPort + ", ";
54: s += "loopbackServer=" + loopbackServer + ", ";
55: s += "ruleCount=" + ruleCount + ", ";
56: s += "lport=" + lport.toString() + ", ";
57: s += "dport=" + dport.toString() + ", ";
58: s += "dhost=" + dhost.toString() + " }";
59: s += "extendSession=" + isExtend + " }";
60:
61: return s;
62: }
63:
64: }
|