KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > publisher > ICustomPublisher


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core.model.ca.publisher;
15
16 import java.security.cert.Certificate JavaDoc;
17 import java.util.Properties JavaDoc;
18
19 import org.ejbca.core.model.log.Admin;
20 import org.ejbca.core.model.ra.ExtendedInformation;
21
22
23
24
25
26 /**
27  * Interface contating methods that need to be implementet in order
28  * to have a custom publisher. All Custom publishers must implement this interface.
29  *
30  * @version $Id: ICustomPublisher.java,v 1.2 2006/07/21 15:28:25 anatom Exp $
31  */

32
33 public interface ICustomPublisher {
34     
35     /**
36      * Method called to all newly created ICustomPublishers to set it up with
37      * saved configuration.
38      */

39     public abstract void init(Properties JavaDoc properties);
40
41     /**
42      * @see org.ejbca.core.model.ca.publisher.BasePublisher
43      */

44     public abstract boolean storeCertificate(Admin admin, Certificate JavaDoc incert, String JavaDoc username, String JavaDoc password, String JavaDoc cafp, int status, int type, long revocationDate, int revocationReason, ExtendedInformation extendedinformation)throws PublisherException;
45     
46     /**
47      * @see org.ejbca.core.model.ca.publisher.BasePublisher
48      */

49     public abstract boolean storeCRL(Admin admin, byte[] incrl, String JavaDoc cafp, int number)throws PublisherException;
50     
51     /**
52      * @see org.ejbca.core.model.ca.publisher.BasePublisher
53      */

54     public abstract void revokeCertificate(Admin admin, Certificate JavaDoc cert, int reason)throws PublisherException;
55     
56     /**
57      * @see org.ejbca.core.model.ca.publisher.BasePublisher
58      */

59     public abstract void testConnection(Admin admin) throws PublisherConnectionException;
60     
61
62 }
63
64
Popular Tags