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

📄 admininformation.java

📁 用来生成java证书
💻 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 org.ejbca.core.model.authorization;import java.security.cert.Certificate;/** * 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 5631 2008-05-22 11:46:54Z anatom $ */public class AdminInformation implements java.io.Serializable {    // Public Methods    /** Creates a new instance of AdminInformation */    public AdminInformation(Certificate 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 Certificate getX509Certificate() {      return this.certificate;    }    public int getSpecialUser() {      return this.specialuser;    }        public int getGroupId(){      return this.admingroup.getAdminGroupId();	    }    // Private fields    private Certificate certificate;    private int specialuser = 0;    private AdminGroup admingroup = null;}

⌨️ 快捷键说明

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