1 13 14 package org.ejbca.core.model.ca.publisher; 15 16 import java.io.Serializable ; 17 import java.security.cert.Certificate ; 18 19 import org.ejbca.core.model.UpgradeableDataHashMap; 20 import org.ejbca.core.model.log.Admin; 21 import org.ejbca.core.model.ra.ExtendedInformation; 22 23 24 25 32 public abstract class BasePublisher extends UpgradeableDataHashMap implements Serializable , Cloneable { 33 35 36 public static final String TRUE = "true"; 37 public static final String FALSE = "false"; 38 39 public static final String TYPE = "type"; 41 42 protected static final String DESCRIPTION = "description"; 43 44 46 49 public BasePublisher() { 50 setDescription(""); 51 52 } 53 54 58 public String getDescription() { return (String ) data.get(DESCRIPTION);} 59 60 63 public void setDescription(String description){ data.put(DESCRIPTION, description); } 64 65 66 67 69 88 public abstract boolean storeCertificate(Admin admin, Certificate incert, String username, String password, String cafp, int status, int type, long revocationDate, int revocationReason, ExtendedInformation extendedinformation) throws PublisherException; 89 90 101 public abstract boolean storeCRL(Admin admin, byte[] incrl, String cafp, int number) throws PublisherException; 102 103 111 public abstract void revokeCertificate(Admin admin, Certificate cert, int reason) throws PublisherException; 112 113 119 public abstract void testConnection(Admin admin) throws PublisherConnectionException; 120 121 122 public abstract Object clone() throws CloneNotSupportedException ; 123 124 125 public abstract float getLatestVersion(); 126 127 128 public void upgrade(){ 129 } 131 132 133 134 } 135 | Popular Tags |