1 13 14 package org.ejbca.core.ejb.hardtoken; 15 16 import javax.ejb.CreateException ; 17 18 import org.apache.log4j.Logger; 19 import org.ejbca.core.ejb.BaseEntityBean; 20 21 72 public abstract class HardTokenCertificateMapBean extends BaseEntityBean { 73 74 private static final Logger log = Logger.getLogger(HardTokenCertificateMapBean.class); 75 76 81 public abstract String getCertificateFingerprint(); 82 83 85 public abstract void setCertificateFingerprint(String certificateFingerprint); 86 87 91 public abstract String getTokenSN(); 92 93 96 public abstract void setTokenSN(String tokenSN); 97 98 99 103 110 public String ejbCreate(String certificateFingerprint, String tokenSN) throws CreateException { 111 setCertificateFingerprint(certificateFingerprint); 112 setTokenSN(tokenSN); 113 log.debug("Created HardTokenCertificateMap for token SN: "+ tokenSN ); 114 return certificateFingerprint; 115 } 116 117 public void ejbPostCreate(String certificateFingerprint, String tokenSN) { 118 } 120 } 121 | Popular Tags |