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

📄 icertificatestoreonlydatasessionremote.java

📁 一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考
💻 JAVA
字号:
/* * Generated by XDoclet - Do not edit! */package org.ejbca.core.ejb.ca.store;/** * Remote interface for CertificateStoreOnlyDataSession. */public interface ICertificateStoreOnlyDataSessionRemote   extends javax.ejb.EJBObject{   /**    * Checks if a certificate is revoked.    * @param admin Administrator performing the operation    * @param issuerDN the DN of the issuer.    * @param serno the serialnumber of the certificate that will be checked    * @return RevokedCertInfo with revocation information, with reason RevokedCertInfo.NOT_REVOKED if NOT revoked. Returns null if certificate is not found.    */   public org.ejbca.core.model.ca.crl.RevokedCertInfo isRevoked( org.ejbca.core.model.log.Admin admin,java.lang.String issuerDN,java.math.BigInteger serno )      throws java.rmi.RemoteException;   /**    * Finds a certificate specified by issuer DN and serial number.    * @param admin Administrator performing the operation    * @param issuerDN issuer DN of the desired certificate.    * @param serno serial number of the desired certificate!    * @return Certificate if found or null    */   public java.security.cert.Certificate findCertificateByIssuerAndSerno( org.ejbca.core.model.log.Admin admin,java.lang.String issuerDN,java.math.BigInteger serno )      throws java.rmi.RemoteException;   /**    * Lists all active (status = 20) certificates of a specific type and if given from a specific issuer. <p/> The type is the bitwise OR value of the types listed int {@link org.ejbca.core.ejb.ca.store.CertificateDataBean}:<br> <ul> <li><tt>CERTTYPE_ENDENTITY</tt><br> An user or machine certificate, which identifies a subject. </li> <li><tt>CERTTYPE_CA</tt><br> A CA certificate which is <b>not</b> a root CA. </li> <li><tt>CERTTYPE_ROOTCA</tt><br> A Root CA certificate. </li> </ul> <p/> Usage examples:<br> <ol> <li>Get all root CA certificates <p/> <code> ... ICertificateStoreOnlyDataSessionRemote itf = ... Collection certs = itf.findCertificatesByType(adm, CertificateDataBean.CERTTYPE_ROOTCA, null); ... </code> </li> <li>Get all subordinate CA certificates for a specific Root CA. It is assumed that the <tt>subjectDN</tt> of the Root CA certificate is located in the variable <tt>issuer</tt>. <p/> <code> ... ICertificateStoreOnlyDataSessionRemote itf = ... Certficate rootCA = ... String issuer = rootCA.getSubjectDN(); Collection certs = itf.findCertificatesByType(adm, CertificateDataBean.CERTTYPE_SUBCA, issuer); ... </code> </li> <li>Get <b>all</b> CA certificates. <p/> <code> ... ICertificateStoreOnlyDataSessionRemote itf = ... Collection certs = itf.findCertificatesByType(adm, CertificateDataBean.CERTTYPE_SUBCA + CERTTYPE_ROOTCA, null); ... </code> </li> </ol>    * @param admin    * @param issuerDN get all certificates issued by a specific issuer. If <tt>null</tt> or empty return certificates regardless of the issuer.    * @param type CERTTYPE_* types from CertificateDataBean    * @return Collection Collection of X509Certificate, never <tt>null</tt>    */   public java.util.Collection findCertificatesByType( org.ejbca.core.model.log.Admin admin,int type,java.lang.String issuerDN )      throws java.rmi.RemoteException;}

⌨️ 快捷键说明

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