securityprovider.java
来自「Some common function write by java」· Java 代码 · 共 40 行
JAVA
40 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?