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

📄 admininformation.java

📁 一套JAVA的CA证书签发系统.
💻 JAVA
字号:
/************************************************************************* *                                                                       * *  EJBCA: The OpenSource Certificate Authority                          * *                                                                       * *  This software is free software; you can redistribute it and/or       * *  modify it under the terms of the GNU Lesser General Public           * *  License as published by the Free Software Foundation; either         * *  version 2.1 of the License, or any later version.                    * *                                                                       * *  See terms of license at gnu.org.                                     * *                                                                       * *************************************************************************/ /* * AdminInformation.java * * Created on den 19 juli 2002, 11:53 */package se.anatom.ejbca.authorization;import java.security.cert.X509Certificate;/** * A class used to send user information to the authorization tree. It can contain types of information, a X509Certificate or a * special user type when certificates cannot be retrieved. Special usertype constants is specified in AdminEntity class. * * @version $Id: AdminInformation.java,v 1.3 2004/04/16 07:38:57 anatom Exp $ */public class AdminInformation implements java.io.Serializable {    // Public Methods    /** Creates a new instance of AdminInformation */    public AdminInformation(X509Certificate certificate){      this.certificate=certificate;      this.specialuser=0;          }        public AdminInformation(int specialuser) {      this.specialuser=specialuser;	      }    	public AdminInformation(AdminGroup admingroup) {	  this.specialuser=0;      	  this.admingroup= admingroup;	  	}    public boolean isSpecialUser() {      return this.specialuser!=0;    }        public boolean isGroupUser() {      return this.admingroup != null;	    }    public X509Certificate getX509Certificate() {      return this.certificate;    }    public int getSpecialUser() {      return this.specialuser;    }        public int getGroupId(){      return this.admingroup.getAdminGroupId();	    }    // Private fields    private X509Certificate certificate;    private int specialuser = 0;    private AdminGroup admingroup = null;}

⌨️ 快捷键说明

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