📄 permissiontag.java
字号:
/* * PermissionTag.java * * Created on June 19, 2003, 5:08 PM */package gov.nist.security.permissions.parser;/** * Class representing a permission tag in a xml permissions file * @author DERUELLE Jean */public class PermissionTag { /**class name of the permission*/ private String permissionClassName = null; /**URI or domain or wildcard of the permission*/ private String permissionName = null; /**list of methods to check for this permission*/ private java.util.Vector methodsToCheck = null; /**the inheritance tag of this permission*/ private InheritanceTag inheritanceTag=null; /**actions of the permission*/ private String actions = null; /** Creates a new instance of PermissionTag */ public PermissionTag() { } /** * return class name of the permission * @return class name */ public String getClassName() { return permissionClassName; } /** * set class name of the permission * @param permissionClassName - class name */ public void setClassName(java.lang.String permissionClassName) { this.permissionClassName=permissionClassName; } /** * return URI or domain or wildcard of the permission * @return URI or domain or wildcard */ public String getName() { return permissionName; } /** * set type URI or domain or wildcard of the permission * @param permissionName - URI or domain or wildcard */ public void setName(java.lang.String permissionName) { this.permissionName=permissionName; } /** * return actions of the permission * @return list of actions as a string separated by a comma */ public String getActions() { return actions; } /** * set actions of the permission * @param actions - list of actions as a string separated by a comma */ public void setActions(java.lang.String actions) { this.actions=actions; } /** * return the methods to check for this permission * @return list of the methods to check as a Vector */ public java.util.Vector getMethodsToCheck() { return methodsToCheck; } /** * set the methods to check for this permission * @param methodsToCheck - list of the methods to check as a Vector */ public void setMethodsToCheck(java.util.Vector methodsToCheck) { this.methodsToCheck=methodsToCheck; } /** * return the inheritance tag to check for this permission * @return the inheritance tag to check for this permission */ public InheritanceTag getInheritanceTag() { return inheritanceTag; } /** * set the inheritance tag to check for this permission * @param inheritanceTag - the inheritance tag to check for this permission */ public void setInheritanceTag(InheritanceTag inheritanceTag) { this.inheritanceTag=inheritanceTag; } /** * return actions of the permission * @return list of actions as a Vector */ public java.util.Vector getActionsAsVector(){ java.util.Vector actionsList=new java.util.Vector(); //we construct the actionList java.util.StringTokenizer actionsTokenizer=new java.util.StringTokenizer(actions,","); while(actionsTokenizer.hasMoreTokens()) actionsList.addElement(actionsTokenizer.nextToken().trim()); return actionsList; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -