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

📄 securityprovider.java.svn-base

📁 一些公用的Java函数
💻 SVN-BASE
字号:
/* * SecurityProvider.java *  * Created on 2007-11-6, 10:58:08 *  * To change this template, choose Tools | Templates * and open the template in the editor. */package com.s7turn.jaas;import org.w3c.dom.Element;/** * * @author Long */public interface SecurityProvider {    public final static int CAN_READ  = 0x0001; ///00001    public final static int CAN_WRITE  = 0x0002;///00010    public final static int CAN_DELETE  = 0x0004;///00100    public final static int CAN_PRINT  = 0x0008;///01000    public final static int CAN_REFERENCE  = 0x0010;//10000    ///the public token for validating the sign    void setProviderConfig( Element elemnt ); ///encryption        byte[] decryptBuffer( byte[] buffer );        ////create a new empty instance for Identity process.    Identity createIdentity();        ///Check the identity has the role    boolean isUserInRole( Identity identity, String role );        ///check the permission for this resourceId.    int checkPermission( Identity identity, String resId );}

⌨️ 快捷键说明

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