From 621d9e5c413e561293d7484b93882d985b3fe15f Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Sat, 24 Mar 2012 02:27:47 -0500 Subject: Removed unnecessary pki folder. Previously the source code was located inside a pki folder. This folder was created during svn migration and is no longer needed. This folder has now been removed and the contents have been moved up one level. Ticket #131 --- .../com/netscape/certsrv/authority/IAuthority.java | 64 +++++++++++++ .../netscape/certsrv/authority/ICertAuthority.java | 101 +++++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 base/common/src/com/netscape/certsrv/authority/IAuthority.java create mode 100644 base/common/src/com/netscape/certsrv/authority/ICertAuthority.java (limited to 'base/common/src/com/netscape/certsrv/authority') diff --git a/base/common/src/com/netscape/certsrv/authority/IAuthority.java b/base/common/src/com/netscape/certsrv/authority/IAuthority.java new file mode 100644 index 000000000..2875e4dd1 --- /dev/null +++ b/base/common/src/com/netscape/certsrv/authority/IAuthority.java @@ -0,0 +1,64 @@ +// --- BEGIN COPYRIGHT BLOCK --- +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// +// (C) 2007 Red Hat, Inc. +// All rights reserved. +// --- END COPYRIGHT BLOCK --- +package com.netscape.certsrv.authority; + +import com.netscape.certsrv.base.ISubsystem; +import com.netscape.certsrv.request.IRequestListener; +import com.netscape.certsrv.request.IRequestQueue; + +/** + * Authority interface. + * + * @version $Revision$ $Date$ + */ +public interface IAuthority extends ISubsystem { + + /** + * Retrieves the request queue for the Authority. + *

+ * + * @return the request queue. + */ + public IRequestQueue getRequestQueue(); + + /** + * Registers request completed class. + */ + public void registerRequestListener(IRequestListener listener); + + /** + * Registers pending request class. + */ + public void registerPendingListener(IRequestListener listener); + + /** + * log interface + */ + public void log(int level, String msg); + + /** + * nickname of signing (id) cert + */ + public String getNickname(); + + /** + * return official product name. + */ + public String getOfficialName(); + +} diff --git a/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java b/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java new file mode 100644 index 000000000..c2f2c91ec --- /dev/null +++ b/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java @@ -0,0 +1,101 @@ +// --- BEGIN COPYRIGHT BLOCK --- +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// +// (C) 2007 Red Hat, Inc. +// All rights reserved. +// --- END COPYRIGHT BLOCK --- +package com.netscape.certsrv.authority; + +import netscape.security.x509.CertificateChain; +import netscape.security.x509.X500Name; +import netscape.security.x509.X509CertImpl; + +import com.netscape.certsrv.dbs.certdb.ICertificateRepository; +import com.netscape.certsrv.logging.ILogger; +import com.netscape.certsrv.publish.IPublisherProcessor; +import com.netscape.certsrv.request.IRequestListener; + +/** + * Authority that handles certificates needed by the cert registration + * servlets. + *

+ * + * @version $Revision$ $Date$ + */ +public interface ICertAuthority extends IAuthority { + + /** + * Retrieves the certificate repository for this authority. + *

+ * + * @return the certificate repository. + */ + public ICertificateRepository getCertificateRepository(); + + /** + * Returns CA's certificate chain. + *

+ * + * @return the Certificate Chain for the CA. + */ + public CertificateChain getCACertChain(); + + /** + * Returns CA's certificate implementaion. + *

+ * + * @return CA's certificate. + */ + public X509CertImpl getCACert(); + + /** + * Returns signing algorithms supported by the CA. + * Dependent on CA's key type and algorithms supported by security lib. + */ + public String[] getCASigningAlgorithms(); + + /** + * Returns authority's X500 Name. - XXX what's this for ?? + */ + public X500Name getX500Name(); + + /** + * Register a request listener + */ + public void registerRequestListener(IRequestListener l); + + /** + * Remove a request listener + */ + public void removeRequestListener(IRequestListener l); + + /** + * Register a pending listener + */ + public void registerPendingListener(IRequestListener l); + + /** + * get authority's publishing module if any. + */ + public IPublisherProcessor getPublisherProcessor(); + + /** + * Returns the logging interface for this authority. + * Using this interface both System and Audit events can be + * logged. + * + */ + public ILogger getLogger(); + +} -- cgit