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

📄 xmltags.java

📁 一个完整的XACML工程,学习XACML技术的好例子!
💻 JAVA
字号:
/*
* Copyright (c) 2000-2005, University of Salford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without 
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this 
* list of conditions and the following disclaimer.
* 
* Redistributions in binary form must reproduce the above copyright notice, 
* this list of conditions and the following disclaimer in the documentation 
* and/or other materials provided with the distribution. 
*
* Neither the name of the University of Salford nor the names of its 
* contributors may be used to endorse or promote products derived from this 
* software without specific prior written permission. 
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
* POSSIBILITY OF SUCH DAMAGE.
*/

package issrg.pba.rbac.xmlpolicy;

/**
 * This class contains the names of the XML tags the XMLParser looks for. The
 * tag names are defined here as final static strings, so any reference to
 * the name of a tag will always refer to the same string in any class.
 *
 * <p>The names of the constants seem to be self-explanatory. The constants
 * with _NODE suffix mean XML node names, and the rest of the name explains
 * what node it names. The constants with _ATTRIBUTE suffix mean XML attribute
 * names, and the rest of the name explains what attribute it names.
 *
 * @author A Otenko
 * @version 1.0
 */

public class XMLTags {
  public static final String ABSOLUTE_NODE = new String("Absolute").intern();
  public final static String ACTION_NODE = new String("Action").intern(); // the strings are .intern() for the purpose of quick comparison: do not have to call .equals() method, just use == operator
  public static final String ACTION_POLICY_NODE = new String("ActionPolicy").intern();
  public static final String AGE_NODE = new String("Age").intern();
  public static final String DELEGATE_NODE = new String("Delegate").intern();
  public static final String EXCLUDE_NODE = new String("Exclude").intern();
  public static final String IF_NODE = new String("IF").intern();
  public static final String INCLUDE_NODE = new String("Include").intern();
  public static final String MAXIMUM_NODE = new String("Maximum").intern();
  public static final String MINIMUM_NODE = new String("Minimum").intern();
  public static final String OBJECT_CLASS_NODE = new String("ObjectClass").intern();
  public static final String REPOSITORY_NODE = new String("Repository").intern();
  public static final String REPOSITORY_POLICY_NODE = new String("RepositoryPolicy").intern();
  public static final String ROLE_ASSIGNMENT_NODE = new String("RoleAssignment").intern();
  public static final String ROLE_ASSIGNMENT_POLICY_NODE = new String("RoleAssignmentPolicy").intern();
  public static final String ROLE_NODE = new String("Role").intern();
  public static final String ROLE_HIERARCHY_POLICY_NODE = new String("RoleHierarchyPolicy").intern();
  public static final String ROLE_LIST_NODE = new String("RoleList").intern();
  public static final String ROLE_SPEC_NODE = new String("RoleSpec").intern();
  public static final String SOA_NODE = new String("SOA").intern();
  public static final String SOA_POLICY_NODE = new String("SOAPolicy").intern();
  public static final String SOA_SPEC_NODE = new String("SOASpec").intern();
  public static final String SUBJECT_DOMAIN_NODE = new String("SubjectDomain").intern();
  public static final String SUBJECT_PREFIX = new String("Subject").intern();
  public static final String SUB_ROLE_NODE = new String("SubRole").intern();
  public static final String SUP_ROLE_NODE = new String("SupRole").intern();
  public static final String SUBJECT_DOMAIN_SPEC_NODE = new String("SubjectDomainSpec").intern();
  public static final String SUBJECT_POLICY_NODE = new String("SubjectPolicy").intern();
  public static final String TARGET_NODE = new String("Target").intern();
  public static final String TARGET_ACCESS_NODE = new String("TargetAccess").intern();
  public static final String TARGET_ACCESS_POLICY_NODE = new String("TargetAccessPolicy").intern();
  public static final String TARGET_DOMAIN_NODE = new String("TargetDomain").intern();
  public static final String TARGET_LIST_NODE = new String("TargetList").intern();
  public static final String TARGET_NAME_NODE = new String("TargetName").intern();
  public static final String TARGET_POLICY_NODE = new String("TargetPolicy").intern();
  public static final String TARGET_DOMAIN_SPEC_NODE = new String("TargetDomainSpec").intern();
  public static final String TARGET_PREFIX = new String("Target").intern();
  public static final String VALIDITY_NODE = new String("Validity").intern();
  public static final String X_509_PMI_RBAC_POLICY_NODE = new String("X.509_PMI_RBAC_Policy").intern();
  public static final String ROLE_MAPPING_POLICY_NODE = "RoleMappingPolicy".intern();
  public static final String TARGET_ACCESS_MAPPING_POLICY_NODE = "TargetAccessMappingPolicy".intern();
  public static final String MSoD_POLICY_SET_NODE = "MSoDPolicySet".intern();  //added by Wensheng 
  public static final String MSoD_POLICY_NODE = "MSoDPolicy".intern();  //added by Wensheng  
  public static final String MSoD_POLICY_FIRSTSTEP = "FirstStep".intern();  
  public static final String MSoD_POLICY_LASTSTEP = "LastStep".intern();  
  
  //@Gansen 2006-7-5
  //Node names for obligations and obligation.
  public static final String OBLIGATIONS_NODE =new String("Obligations").intern();//@Gansen
  public static final String OBLIGATION_NODE =new String("Obligation").intern();//@Gansen
  
  public static final String OBLIGATION_ID_ATTRIBUTE="ObligationID";
  public static final String OBLIGATION_CHRONICLE_ATTRIBUTE="Chronicle";
  
  //@Gansen 2006-8-7
  //Name for NULL SOA name.
  public static final String UNIVERSAL_SOA_LDAPDN=new String("");
  
  //@

  public static final String CONTEXT_NAME = "ContextName".intern();  


  public final static String ACTIONS_ATTRIBUTE = "Actions";
  public final static String ARGS_ATTRIBUTE = "Args";
  public static final String DEPTH_ATTRIBUTE = "Depth";
  public final static String END_ATTRIBUTE="End";
  public static final String ID_ATTRIBUTE = "ID";
  public static final String LDAPDN_ATTRIBUTE = "LDAPDN";
  public static final String MAX_ATTRIBUTE = "Max";
  public static final String MIN_ATTRIBUTE = "Min";
  public final static String NAME_ATTRIBUTE = "Name";
  public final static String OID_ATTRIBUTE="OID";
  public final static String RETURN_TYPE_ATTRIBUTE = "ReturnType";
  public final static String START_ATTRIBUTE="Start";
  public final static String TIME_ATTRIBUTE="Time";
  public final static String TYPE_ATTRIBUTE="Type";
  public final static String URI_ATTRIBUTE="URI";
  public final static String URL_ATTRIBUTE="URL";
  public static final String VALUE_ATTRIBUTE = "Value";
  public static final String MAPPING_SPEC = "MappingSpec";
  public static final String HIGHER_ROLE = "HigherRole";
  public static final String LOWER_ROLE = "LowerRole";

  protected XMLTags(){}
}

⌨️ 快捷键说明

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