01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.core.model.log;
13:
14: import java.util.Collection;
15:
16: /** This interface is used for exporting a number of log entries to
17: * any format defined by the implementing class.
18: *
19: * @author tomas
20: * @version $Id: ILogExporter.java,v 1.2 2006/12/29 11:21:14 anatom Exp $
21: */
22: public interface ILogExporter {
23:
24: /** Sets the entries to be exported. Entries can also be set in the contructor if it is more suitable for
25: * the implementing class.
26: *
27: * @param logentries a Collection of LogEntry
28: */
29: public void setEntries(Collection logentries);
30:
31: /** Returns the number of log intries that are about to be exported
32: *
33: * @return positive integer or 0
34: */
35: public int getNoOfEntries();
36:
37: /** Gets a CA used to create a signed CMS message of the log export, can be null for plain export
38: *
39: * @return signCA CA (caid in string format, 12345) used to create a signed CMS message of the log export, or null for plain export
40: */
41: public String getSigningCA();
42:
43: /** Returns the exported data, determined by the exporting class. Can be binary or text data.
44: *
45: * @return byte data or null if no of exported entries are 0.
46: */
47: public byte[] export();
48:
49: }
|