com.netscape.certsrv.cert
Interface ICrossCertPairSubsystem

All Superinterfaces:
ISubsystem

public interface ICrossCertPairSubsystem
extends ISubsystem

Interface for handling cross certs

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 java.security.cert.X509Certificate byteArray2X509Cert(byte[] certBytes)
          convert byte array to X509Certificate
 void importCert(byte[] certBytes)
          "import" the CA cert cross-signed by another CA (potentially a bridge CA) into internal ldap db.
 void publishCertPairs()
          publish all cert pairs, if publisher is on
 
Methods inherited from interface com.netscape.certsrv.base.ISubsystem
getConfigStore, getId, init, setId, shutdown, startup
 

Method Detail

importCert

void importCert(byte[] certBytes)
                throws EBaseException
"import" the CA cert cross-signed by another CA (potentially a bridge CA) into internal ldap db. If publishing is turned on, and if matches up a pair, then publish to publishing directory otherwise, leave in internal ldap db and wait for it's matching pair

Parameters:
certBytes - binary byte array of the cert
Throws:
EBaseException - when certBytes conversion to X509 certificate fails

publishCertPairs

void publishCertPairs()
                      throws EBaseException
publish all cert pairs, if publisher is on

Throws:
EBaseException - when publishing fails

byteArray2X509Cert

java.security.cert.X509Certificate byteArray2X509Cert(byte[] certBytes)
                                                      throws java.security.cert.CertificateException
convert byte array to X509Certificate

Returns:
X509Certificate the X509Certificate class representation of the certificate byte array
Throws:
java.security.cert.CertificateException - when conversion fails