⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coreeventconstants.java

📁 这是linux下ssl vpn的实现程序
💻 JAVA
字号:
/*
 *  SSL-Explorer
 *
 *  Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2 of
 *  the License, or (at your option) any later version.
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public
 *  License along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
			
package com.sslexplorer.core;

/**
 * Constants for event IDs.
 * 
 * @author Brett Smith <a href="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
 * @version $Revision: 1.18 $
 * @see com.sslexplorer.core.CoreEvent
 * @see com.sslexplorer.core.CoreListener
 */
public interface CoreEventConstants {

    /**
     * A new HTTP session has been created (i.e. a new client browser has made a
     * connection.
     */
    public final static int NEW_HTTP_SESSION = 0;

    /**
     * Server is being started
     */
    public static final int SERVER_STARTED = 1;

    /**
     * Server is stopping
     */
    public static final int SERVER_STOPPING = 2;

    /**
     * Server has stopped
     */
    public static final int SERVER_STOPPED = 3;

    /**
     * A new user has successfully logged on
     */
    public final static int LOGON = 300;

    /**
     * An application using the embedded client API has logged on
     */
    public final static int EMBEDDED_CLIENT_LOGON = 301;

    /**
     * A user has logged off
     */
    public final static int LOGOFF = 302;

    /**
     * An application using the embedded client API has logged off
     */
    public static final int EMBEDDED_CLIENT_LOGOFF = 303;

    /**
     * An account has been locked
     */
    public static final int ACCOUNT_LOCKED = 304;

    /**
     * A system property, profile property or user attribute value has changed
     */
    public final static int PROPERTY_CHANGED = 305;

    /**
     * A new keystore has been created
     */
    public final static int KEYSTORE_CREATED = 400;

    /**
     * A keystore has been imported
     */
    public final static int KEYSTORE_IMPORTED = 401;

    /**
     * A keystore has been deleted
     */
    public final static int KEYSTORE_DELETED = 402;

    /**
     * A certificate has been created
     * 
     */
    public final static int KEYSTORE_CERTIFICATE_CREATED = 403;

    /**
     * A CSR has been generated
     */
    public final static int KEYSTORE_CERTIFICATE_CSR_GENERATED = 405;

    /**
     * A signed certificate has been imported
     */
    public final static int KEYSTORE_CERTIFICATE_SIGNED_IMPORTED = 406;

    /**
     * A certificate has been deleted
     */
    public final static int KEYSTORE_CERTIFICATE_DELETED = 407;

    /**
     * A PKCS12 keystore has been imported
     */
    public final static int KEYSTORE_PKCS12_KEY_KEY_IMPORTED = 409;

    /**
     * A trusted certificate was imported
     */
    public final static int KEYSTORE_TRUSTED_CERTIFICATE_IMPORTED = 410;

    /**
     * A client certificate was imported
     */
    public final static int KEYSTORE_SERVER_AUTHENTICATION_CERTIFICATE_IMPORTED = 411;

    /**
     * A root certificate was imported
     */
    public final static int KEYSTORE_ROOT_CERTIFICATE_IMPORTED = 412;

    /**
     * An agent (VPN client) has registered
     */
    public final static int VPN_CLIENT_REGISTER = 501;

    /**
     * An agent (VPN client) has de-registered
     */
    public final static int VPN_CLIENT_DEREGISTER = 502;
    
    /**
     * An agent (VPN client) has been started
     */
    public final static int AGENT_LAUNCHED = 503;
    
    /**
     * An agent (VPN client) has been stoped
     */
    public final static int AGENT_STOPPED = 504;

    // #ifdef XTRA

    /**
     * A new user has been created
     */
    public final static int USER_CREATED = 100;

    /**
     * A user has ben removed
     */
    public final static int USER_REMOVED = 101;

    /**
     * A user has been edited
     */
    public final static int USER_EDITED = 102;

    /**
     * A role has been created
     */
    public final static int ROLE_CREATED = 200;

    /**
     * A role has been removed
     */
    public final static int ROLE_REMOVED = 201;

    /**
     * A role has been updated
     */
    public final static int ROLE_UPDATED = 202;

    /**
     * An SSL tunnel has been opened
     */
    public static final int TUNNEL_OPENED = 601;

    /**
     * An SSL tunnel has been closed
     */
    public static final int TUNNEL_CLOSED = 602;

    /**
     * A web forward has just been started
     */
    public static final int WEB_FORWARD_STARTED = 610;

    /**
     * A resource has been loaded through a web forwadd
     */
    public static final int WEB_FORWARD_RESOURCE_LOADED = 611;

    /**
     * A VFS directory has been listed
     */
    public static final int VFS_DIRECTORY_LISTED = 621;

    /**
     * A VFS directory has been created
     */
    public static final int VFS_DIRECTORY_CREATED = 622;

    /**
     * A VFS file has been removed
     */
    public static final int VFS_FILE_REMOVED = 623;

    /**
     * A VFS file, directory or zip has been downloaded
     */
    public static final int VFS_FILE_DOWNLOAD_STARTED = 624;

    /**
     * A VFS file, directory or zip has been downloaded
     */
    public static final int VFS_FILE_DOWNLOAD_COMPLETE = 625;

    /**
     * A VFS file or directory was copied
     */
    public static final int VFS_FILE_COPY = 626;

    /**
     * A VFS directory has been removed
     */
    public static final int VFS_REMOVE = 627;

    /**
     * A VFS upload file
     */
    public static final int VFS_UPLOAD_FILE = 628;

    /**
     * A VFS zip file
     */
    public static final int VFS_ZIP_DOWNLOAD = 629;

    /**
     * A VFS Paste operation
     */
    public static final int VFS_PASTE_OPERATION = 630;

    /**
     * A VFS re-name operation
     */
    public static final int VFS_RENAME = 631;

    /**
     * An application shortcut has been launched
     */
    public static final int APPLICATION_SHORTCUT_LAUNCHED = 640;

    /**
     * An account has been enabled
     */
    public static final int GRANT_ACCESS = 2000;

    /**
     * An account has been disabled
     */
    public static final int REVOKE_ACCESS = 2001;

    /**
     * A replacement has been deleted
     */
    public static final int DELETE_REPLACEMENT = 2022;

    /**
     * A replacement has been updated
     */
    public static final int UPDATE_REPLACEMENT = 2023;

    /**
     * A replacement has been created
     */
    public static final int CREATE_REPLACEMENT = 2024;

    /**
     * Personal answers have been set
     */
    public static final int SET_PERSONAL_ANSWER = 2026;

    /**
     * An authentication scheme has been created
     */
    public static final int CREATE_AUTHENTICATION_SCHEME = 2028;

    /**
     * An authentication scheme has been removed
     */
    public static final int DELETE_AUTHENTICATION_SCHEME = 2029;

    /**
     * An authentication scheme has been updated
     */
    public static final int UPDATE_AUTHENTICATION_SCHEME = 2030;

    /**
     * A user has changed their password
     */
    public static final int CHANGE_PASSWORD = 2034;

    /*
     * Extension
     */

    /**
     * Extension installed
     */
    public static final int INSTALL_EXTENSION = 2080;

    /**
     * Extension updated
     */
    public static final int UPDATE_EXTENSION = 2081;
    
    /**
     * Extension removed
     */
    public static final int REMOVE_EXTENSION = 2082;
    
    /*
     * Application shortcuts
     */

    /**
     * Application shortcut created
     */
    public static final int CREATE_APPLICATION_SHORTCUT = 2006;

    /**
     * Application shortcut updated
     */
    public static final int UPDATE_APPLICATION_SHORTCUT = 2007;

    /**
     * Application shortcut removed
     */
    public static final int REMOVE_APPLICATION_SHORTCUT = 2008;

    /*
     * SSL Tunnels
     */

    /**
     * SSL Tunnel created
     */
    public static final int CREATE_TUNNEL = 2009;

    /**
     * SSL Tunnel updated
     */
    public static final int UPDATE_TUNNEL = 2010;

    /**
     * SSL Tunnel removed
     */
    public static final int REMOVE_TUNNEL = 2012;

    /*
     * Network places
     */

    /**
     * Network place created
     */
    public static final int CREATE_NETWORK_PLACE = 2020;

    /**
     * Network place updated
     */
    public static final int UPDATE_NETWORK_PLACE = 2019;

    /**
     * Network place deleted
     */
    public static final int DELETE_NETWORK_PLACE = 2021;

    /*
     * Web Forwards
     */

    /**
     * Web forward created
     */
    public static final int CREATE_WEB_FORWARD = 2016;

    /**
     * Web forward updated
     */
    public static final int UPDATE_WEB_FORWARD = 2017;

    /**
     * Web forward deleted
     */
    public static final int DELETE_WEBFORWARD = 2018;

    /*
     * IP Restrictions
     */

    /**
     * IP Restriction created
     */
    public static final int CREATE_IP_RESTRICTION = 2150;

    /**
     * IP Restriction deleted
     */
    public static final int DELETE_IP_RESTRICTION = 2151;

    /*
     * Property profiles
     */

    /**
     * Property profile created
     */
    public static final int CREATE_PROPERTY_PROFILE = 2005;

    /**
     * Property profile updated
     */
    public static final int UPDATE_PROPERTY_PROFILE = 2048;

    /**
     * Property profile deleted
     */
    public static final int DELETE_PROPERTY_PROFILE = 2049;

    /*
     * Policy framework events
     */

    /**
     * Resource attached to policy. Usually during resource creation or resource
     * edit
     */
    public static final int RESOURCE_ATTACHED_TO_POLICY = 2100;

    /**
     * Resource detached from policy. Usually during resource creation or
     * resource edit
     */
    public static final int RESOURCE_DETACHED_FROM_POLICY = 2101;

    /**
     * Policy granted to principal
     */
    public static final int GRANT_POLICY_TO_PRINCIPAL = 2102;

    /**
     * Policy revoked from principal
     */
    public static final int REVOKE_POLICY_FROM_PRINCIPAL = 2103;

    /**
     * Policy created
     */
    public static final int CREATE_POLICY = 2041;

    /**
     * Policy updated
     */
    public static final int UPDATE_POLICY = 2042;

    /**
     * Policy deleted
     */
    public static final int DELETE_POLICY = 2043;

    /**
     * Resource permission created
     */
    public static final int CREATE_RESOURCE_PERMISSION = 2050;

    /**
     * Resource permission deleted
     */
    public static final int UPDATE_RESOURCE_PERMISSION = 2051;

    /**
     * Resource permission deleted
     */
    public static final int DELETE_RESOURCE_PERMISSION = 2052;

    /* User Attributes */

    /**
     * User attribute definition created
     */
    public static final int USER_ATTRIBUTE_DEFINITION_CREATED = 2060;

    /**
     * User attribute definition updated
     */
    public static final int USER_ATTRIBUTE_DEFINITION_UPDATED = 2061;

    /**
     * User attribute definition removed
     */
    public static final int USER_ATTRIBUTE_DEFINITION_REMOVED = 2062;

    /**
     * Value of a user attribute changed
     */
    public static final int USER_ATTRIBUTE_CHANGED = 2063;

    /*
     * Messaging
     */

    /**
     * Message queued in notification
     */
    public static final int MESSAGE_QUEUED = 2070;

    /**
     * Message queued in notification
     */
    public static final int MESSAGE_SENT = 2071;

    // #endif
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -