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

📄 cainfo.java

📁 JAVA做的J2EE下CA认证系统 基于EJB开发
💻 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.                                     * *                                                                       * *************************************************************************/ package se.anatom.ejbca.ca.caadmin;import java.io.Serializable;import java.util.Collection;import java.util.Date;/** * Holds nonsensitive information about a CA. * * @version $Id: CAInfo.java,v 1.8 2005/04/29 08:16:28 anatom Exp $ */public abstract class CAInfo implements Serializable {    public static final int CATYPE_X509 = 1;          /**      * Constants indicating that the CA is selfsigned.     */      public static final int SELFSIGNED = 1;    /**     * Constant indicating that the CA is signed by an external CA.     */    public static final int SIGNEDBYEXTERNALCA = 2;            /**     * Constant indicating where the special caid border is. All CAs with CA id not below this value     * should be created     */    public static final int SPECIALCAIDBORDER = 10;            protected String subjectdn;    protected int caid;    protected String name;    protected int status;    protected int validity;    protected Date expiretime;    protected int catype;    protected int signedby;    protected Collection certificatechain;    protected CATokenInfo catokeninfo;    protected String description;    protected int revokationreason;    protected Date revokationdate;    protected int certificateprofileid;    protected int crlperiod;    protected Collection crlpublishers;  	protected boolean finishuser;  	protected Collection extendedcaserviceinfos;        public CAInfo(){}        public String getSubjectDN() {return subjectdn;}    public int getCAId(){return this.caid;}    public String getName() {return this.name;}    public int getStatus() {return status;}    public int getCAType() {return catype;}    public int getSignedBy() {return signedby;}        public int getValidity() { return validity;}    public void setValidity(int validity) { this.validity = validity; }        public Date getExpireTime() {return this.expiretime;}          /** Retrieves the certificate chain for the CA. The returned certificate chain MUST have the	 * RootCA certificate in the last position and the CAs certificate in the first.     */    public Collection getCertificateChain(){ return certificatechain;}    public CATokenInfo getCATokenInfo() {return this.catokeninfo;}        public String getDescription(){ return this.description;}    public void setDescription(String description){ this.description = description;}        public int getRevokationReason(){ return this.revokationreason;}    public Date getRevokationDate(){ return this.revokationdate;}            public int getCertificateProfileId(){ return this.certificateprofileid; }        public int getCRLPeriod(){ return crlperiod;}    public void setCRLPeriod(int crlperiod){ this.crlperiod=crlperiod;}      public Collection getCRLPublishers(){ return crlpublishers;}    public void setCRLPublishers(Collection crlpublishers){this.crlpublishers=crlpublishers;}        		public boolean getFinishUser(){ return finishuser;}	public void setFinishUser(boolean finishuser){ this.finishuser=finishuser;}		public Collection getExtendedCAServiceInfos(){ return this.extendedcaserviceinfos;}	public void setExtendedCAServiceInfos(Collection extendedcaserviceinfos){ this.extendedcaserviceinfos = extendedcaserviceinfos;}     		}

⌨️ 快捷键说明

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