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

📄 policy.java

📁 这是linux下ssl vpn的实现程序
💻 JAVA
字号:
package com.sslexplorer.policyframework;

import java.io.Serializable;


public interface Policy extends Resource, Serializable {

    // Policy types
    
    public final static int TYPE_NORMAL = 1;
    public final static int TYPE_INVISIBLE = 2;
    
    // Principal types (currently informational only - used in policy / principal relationship)
    
    public final static int PRINCIPAL_USER = 0;
    public final static int PRINCIPAL_GROUP = 1;

    /**
     * Get the type of policy object. Can be one of
     * {@link Policy#TYPE_INVISIBLE} or {@link Policy#TYPE_NORMAL}.
     */
    public int getType();

    /**
     * Set the type of policy object. Can be one of
     * {@link Policy#TYPE_INVISIBLE} or {@link Policy#TYPE_NORMAL}.
     * 
     * @param type type
     */
    public void setType(int type);

    /**
     * Set the human readable name of this policy
     * 
     * @param name name
     */
    public void setResourceName(String name);

    /**
     * Set the description for this policy
     * 
     * @param description description
     */
    public void setResourceDescription(String description);
    
    /**
     * Get the policy id's of any child policies
     * 
     * @return child policy ids
     */
    public int[] getChildPolicies();

    
    /**
     * Set the policy id's of any child policies
     * 
     * @param ids child policy ids
     */
    public void setChildPolicies(int[] ids);

    
    /**
     * Compare this policy to another. Polcies are equal if their
     * polciy IDs are the same.
     * 
     * @param o policy to compare against
     */
    public boolean equals(Object o);
}

⌨️ 快捷键说明

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