summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/authority
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-24 02:27:47 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-26 11:43:54 -0500
commit621d9e5c413e561293d7484b93882d985b3fe15f (patch)
tree638f3d75761c121d9a8fb50b52a12a6686c5ac5c /base/common/src/com/netscape/certsrv/authority
parent40d3643b8d91886bf210aa27f711731c81a11e49 (diff)
downloadpki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.gz
pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.xz
pki-621d9e5c413e561293d7484b93882d985b3fe15f.zip
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
Diffstat (limited to 'base/common/src/com/netscape/certsrv/authority')
-rw-r--r--base/common/src/com/netscape/certsrv/authority/IAuthority.java64
-rw-r--r--base/common/src/com/netscape/certsrv/authority/ICertAuthority.java101
2 files changed, 165 insertions, 0 deletions
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.
+ * <P>
+ *
+ * @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.
+ * <P>
+ *
+ * @version $Revision$ $Date$
+ */
+public interface ICertAuthority extends IAuthority {
+
+ /**
+ * Retrieves the certificate repository for this authority.
+ * <P>
+ *
+ * @return the certificate repository.
+ */
+ public ICertificateRepository getCertificateRepository();
+
+ /**
+ * Returns CA's certificate chain.
+ * <P>
+ *
+ * @return the Certificate Chain for the CA.
+ */
+ public CertificateChain getCACertChain();
+
+ /**
+ * Returns CA's certificate implementaion.
+ * <P>
+ *
+ * @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();
+
+}