1 13 14 package org.ejbca.core.model.ca.caadmin.extendedcaservices; 15 16 import org.ejbca.core.model.UpgradeableDataHashMap; 17 import org.ejbca.core.model.ca.caadmin.CA; 18 19 20 25 public abstract class ExtendedCAService extends UpgradeableDataHashMap implements java.io.Serializable { 26 27 public static final String EXTENDEDCASERVICETYPE = "extendedcaservicetype"; 28 29 public final String SERVICENAME = ""; 30 31 public static final String STATUS = "status"; 32 33 protected void setStatus(int status){ this.data.put(STATUS, new Integer (status)); } 34 35 protected int getStatus(){ return ((Integer ) data.get(STATUS)).intValue(); } 36 37 42 public abstract void init(CA ca) throws Exception ; 43 44 45 50 public abstract void update(ExtendedCAServiceInfo info, CA ca) throws Exception ; 51 52 53 56 57 public abstract ExtendedCAServiceInfo getExtendedCAServiceInfo(); 58 59 62 public abstract ExtendedCAServiceResponse extendedService(ExtendedCAServiceRequest request) 63 throws ExtendedCAServiceRequestException, IllegalExtendedCAServiceRequestException, ExtendedCAServiceNotActiveException; 64 65 66 } 67 | Popular Tags |