attribute.java

来自「一个完整的XACML工程,学习XACML技术的好例子!」· Java 代码 · 共 48 行

JAVA
48
字号

/*
 * Attribute.java
 *
 * Created on 05 August 2006, 20:33
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package uk.ac.kent.dpa.custom.authz.util;

/**
 *
 * @author ls97
 */
public class Attribute {
    
    public static int SUBJECT = 10;
    public static int ACTION = 11;
    public static int RESOURCE = 12;
    public static int ENVIRONMENT = 13;
    
    private String name;
    private String dataType;
    private int type;
    
    /** Creates a new instance of Attribute */
    public Attribute(String nameIn,String dataTypeIn,int typeIn) {
        this.dataType=dataTypeIn;
        this.name=nameIn;
        this.type=typeIn;
    }
    
    public String getName() {
        return this.name;
    }
    
    public String getDataType() {
        return this.dataType;
    }
    
    public int getType() {
        return this.type;
    }
    
}

⌨️ 快捷键说明

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