KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > core > CoreEventConstants


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.core;
21
22 /**
23  * Constants for event IDs.
24  *
25  * @author Brett Smith <a HREF="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
26  * @see com.sslexplorer.core.CoreEvent
27  * @see com.sslexplorer.core.CoreListener
28  */

29 public interface CoreEventConstants {
30
31     /**
32      * A new HTTP session has been created (i.e. a new client browser has made a
33      * connection.
34      */

35     public final static int NEW_HTTP_SESSION = 0;
36
37     /**
38      * Server is being started
39      */

40     public static final int SERVER_STARTED = 1;
41
42     /**
43      * Server is stopping
44      */

45     public static final int SERVER_STOPPING = 2;
46
47     /**
48      * Server has stopped
49      */

50     public static final int SERVER_STOPPED = 3;
51
52     /**
53      * A new user has successfully logged on
54      */

55     public final static int LOGON = 300;
56
57     /**
58      * An application using the embedded client API has logged on
59      */

60     public final static int EMBEDDED_CLIENT_LOGON = 301;
61
62     /**
63      * A user has logged off
64      */

65     public final static int LOGOFF = 302;
66
67     /**
68      * An application using the embedded client API has logged off
69      */

70     public static final int EMBEDDED_CLIENT_LOGOFF = 303;
71
72     /**
73      * An account has been locked
74      */

75     public static final int ACCOUNT_LOCKED = 304;
76
77     /**
78      * A system property, profile property or user attribute value has changed
79      */

80     public final static int PROPERTY_CHANGED = 305;
81
82     /**
83      * A new keystore has been created
84      */

85     public final static int KEYSTORE_CREATED = 400;
86
87     /**
88      * A keystore has been imported
89      */

90     public final static int KEYSTORE_IMPORTED = 401;
91
92     /**
93      * A keystore has been deleted
94      */

95     public final static int KEYSTORE_DELETED = 402;
96
97     /**
98      * A certificate has been created
99      *
100      */

101     public final static int KEYSTORE_CERTIFICATE_CREATED = 403;
102
103     /**
104      * A CSR has been generated
105      */

106     public final static int KEYSTORE_CERTIFICATE_CSR_GENERATED = 405;
107
108     /**
109      * A signed certificate has been imported
110      */

111     public final static int KEYSTORE_CERTIFICATE_SIGNED_IMPORTED = 406;
112
113     /**
114      * A certificate has been deleted
115      */

116     public final static int KEYSTORE_CERTIFICATE_DELETED = 407;
117
118     /**
119      * A PKCS12 keystore has been imported
120      */

121     public final static int KEYSTORE_PKCS12_KEY_KEY_IMPORTED = 409;
122
123     /**
124      * A trusted certificate was imported
125      */

126     public final static int KEYSTORE_TRUSTED_CERTIFICATE_IMPORTED = 410;
127
128     /**
129      * A client certificate was imported
130      */

131     public final static int KEYSTORE_SERVER_AUTHENTICATION_CERTIFICATE_IMPORTED = 411;
132
133     /**
134      * A root certificate was imported
135      */

136     public final static int KEYSTORE_ROOT_CERTIFICATE_IMPORTED = 412;
137
138     /**
139      * An agent (VPN client) has registered
140      */

141     public final static int AGENT_REGISTER = 501;
142
143     /**
144      * An agent (VPN client) has de-registered
145      */

146     public final static int AGENT_DEREGISTER = 502;
147     
148     /**
149      * An agent (VPN client) has been started
150      */

151     public final static int AGENT_LAUNCHED = 503;
152     
153     /**
154      * An agent (VPN client) has been stoped
155      */

156     public final static int AGENT_STOPPED = 504;
157
158     /**
159      * A new user has been created
160      */

161     public final static int USER_CREATED = 100;
162
163     /**
164      * A user has ben removed
165      */

166     public final static int USER_REMOVED = 101;
167
168     /**
169      * A user has been edited
170      */

171     public final static int USER_EDITED = 102;
172
173     /**
174      * A role has been created
175      */

176     public final static int GROUP_CREATED = 200;
177
178     /**
179      * A role has been removed
180      */

181     public final static int GROUP_REMOVED = 201;
182
183     /**
184      * A role has been updated
185      */

186     public final static int GROUP_UPDATED = 202;
187
188     /**
189      * An account has been enabled
190      */

191     public static final int GRANT_ACCESS = 2000;
192
193     /**
194      * An account has been disabled
195      */

196     public static final int REVOKE_ACCESS = 2001;
197
198     /**
199      * Personal answers have been set
200      */

201     public static final int SET_PERSONAL_ANSWER = 2026;
202
203     /**
204      * An authentication scheme has been created
205      */

206     public static final int CREATE_AUTHENTICATION_SCHEME = 2028;
207
208     /**
209      * An authentication scheme has been removed
210      */

211     public static final int DELETE_AUTHENTICATION_SCHEME = 2029;
212
213     /**
214      * An authentication scheme has been updated
215      */

216     public static final int UPDATE_AUTHENTICATION_SCHEME = 2030;
217
218     /**
219      * A user has changed their password
220      */

221     public static final int CHANGE_PASSWORD = 2034;
222
223     /*
224      * Extension
225      */

226
227     /**
228      * Extension installed
229      */

230     public static final int INSTALL_EXTENSION = 2080;
231
232     /**
233      * Extension updated
234      */

235     public static final int UPDATE_EXTENSION = 2081;
236     
237     /**
238      * Extension removed
239      */

240     public static final int REMOVE_EXTENSION = 2082;
241     
242     /**
243      * Removing extension (occurs before {@link #REMOVE_EXTENSION})
244      */

245     public static final int REMOVING_EXTENSION = 2083;
246
247     /*
248      * IP Restrictions
249      */

250
251     /**
252      * IP Restriction created
253      */

254     public static final int CREATE_IP_RESTRICTION = 2150;
255     
256     /**
257      * IP Restriction edited
258      */

259     public static final int EDIT_IP_RESTRICTION = 2152;
260
261     /**
262      * IP Restriction deleted
263      */

264     public static final int DELETE_IP_RESTRICTION = 2151;
265
266     /**
267      * IP Restriction moved up
268      */

269     public static final int IP_RESTRICTION_MOVE_UP = 2153;
270     
271     /**
272      * IP Restriction moved up
273      */

274     public static final int IP_RESTRICTION_MOVE_DOWN = 2154;
275     
276     /*
277      * Property profiles
278      */

279
280     /**
281      * Property profile created
282      */

283     public static final int CREATE_PROPERTY_PROFILE = 2005;
284
285     /**
286      * Property profile updated
287      */

288     public static final int UPDATE_PROPERTY_PROFILE = 2048;
289
290     /**
291      * Property profile deleted
292      */

293     public static final int DELETE_PROPERTY_PROFILE = 2049;
294
295     /*
296      * Policy framework events
297      */

298
299     /**
300      * Resource attached to policy. Usually during resource creation or resource
301      * edit
302      */

303     public static final int RESOURCE_ATTACHED_TO_POLICY = 2100;
304
305     /**
306      * Resource detached from policy. Usually during resource creation or
307      * resource edit
308      */

309     public static final int RESOURCE_DETACHED_FROM_POLICY = 2101;
310
311     /**
312      * Policy granted to principal
313      */

314     public static final int GRANT_POLICY_TO_PRINCIPAL = 2102;
315
316     /**
317      * Policy revoked from principal
318      */

319     public static final int REVOKE_POLICY_FROM_PRINCIPAL = 2103;
320
321     /**
322      * Policy created
323      */

324     public static final int CREATE_POLICY = 2041;
325
326     /**
327      * Policy updated
328      */

329     public static final int UPDATE_POLICY = 2042;
330
331     /**
332      * Policy deleted
333      */

334     public static final int DELETE_POLICY = 2043;
335
336     /**
337      * Access right created
338      */

339     public static final int CREATE_ACCESS_RIGHT = 2050;
340
341     /**
342      * Access right updated
343      */

344     public static final int UPDATE_ACCESS_RIGHT = 2051;
345
346     /**
347      * Access right deleted
348      */

349     public static final int DELETE_ACCESS_RIGHT = 2052;
350
351     /* User Attributes */
352
353     /**
354      * User attribute definition created
355      */

356     public static final int ATTRIBUTE_DEFINITION_CREATED = 2060;
357
358     /**
359      * User attribute definition updated
360      */

361     public static final int ATTRIBUTE_DEFINITION_UPDATED = 2061;
362
363     /**
364      * User attribute definition removed
365      */

366     public static final int ATTRIBUTE_DEFINITION_REMOVED = 2062;
367
368     /*
369      * Messaging
370      */

371
372     /**
373      * Message queued in notification
374      */

375     public static final int MESSAGE_QUEUED = 2070;
376
377     /**
378      * Message queued in notification
379      */

380     public static final int MESSAGE_SENT = 2071;
381     
382     /**
383      * Message queued in notification
384      */

385     public static final int MESSAGE_QUEUE_CLEARED = 2072;
386 }
387
Popular Tags