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

📄 ocspcaserviceinfo.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.extendedcaservices;import java.io.Serializable;import java.util.List;/** * Class used mostly when creating service. Also used when info about the services  * is neesed *  *  * @version $Id: OCSPCAServiceInfo.java,v 1.4 2004/04/16 07:38:57 anatom Exp $ */public class OCSPCAServiceInfo extends ExtendedCAServiceInfo implements Serializable {               public static final String KEYALGORITHM_RSA = "RSA";              private String subjectdn      = null;    private String subjectaltname = null;   	private int    keysize        = 1024;    private String keyalgorithm   = KEYALGORITHM_RSA; // Currently not used.    private List   ocspcertchain  = null;        private boolean renew = false;               /**     * Used when creating new service.     */           public OCSPCAServiceInfo(int status,                             String subjectdn,                              String subjectaltname,                              int keysize,                              String keyalgorithm){      super(status);                       	      this.subjectdn = subjectdn;      this.subjectaltname = subjectaltname;    	      this.keysize = keysize;      this.keyalgorithm = keyalgorithm; 	     }    	/**	 * Used when returning information from service	 */       	public OCSPCAServiceInfo(int status,							 String subjectdn, 							 String subjectaltname, 							 int keysize, 							 String keyalgorithm,							 List ocspcertpath){	  super(status);                       		  this.subjectdn = subjectdn;	  this.subjectaltname = subjectaltname;    		  this.keysize = keysize;	  this.keyalgorithm = keyalgorithm; 	 	  this.ocspcertchain = ocspcertpath;	}            /*     * Used when updating existing services, only status is used.     */    public OCSPCAServiceInfo(int status, boolean renew){      super(status);	      this.renew = renew;    }        public String getSubjectDN(){ return this.subjectdn; }    public String getSubjectAltName(){ return this.subjectaltname; }    public int getKeySize(){ return this.keysize; }    public String getKeyAlgorithm(){ return this.keyalgorithm; }    public boolean getRenewFlag(){ return this.renew; }     public List getOCSPSignerCertificatePath(){ return this.ocspcertchain;}           }

⌨️ 快捷键说明

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