1 13 14 package org.ejbca.core.model.ca.certificateprofiles; 15 16 import java.util.ArrayList ; 17 18 23 public class OCSPSignerCertificateProfile extends CertificateProfile{ 24 25 27 public static final String CERTIFICATEPROFILENAME = "OCSPSIGNER"; 28 29 34 public OCSPSignerCertificateProfile() { 35 36 setType(TYPE_ENDENTITY); 37 38 setUseKeyUsage(true); 41 setKeyUsage(new boolean[9]); 42 setKeyUsage(DIGITALSIGNATURE,true); 43 setKeyUsageCritical(true); 44 45 setUseExtendedKeyUsage(true); 46 ArrayList eku = new ArrayList (); 47 eku.add(new Integer (OCSPSIGNING)); 48 setExtendedKeyUsage(eku); 49 setExtendedKeyUsageCritical(false); 50 51 } 52 53 public void upgrade(){ 55 if(Float.compare(LATEST_VERSION, getVersion()) != 0) { 56 58 super.upgrade(); 59 } 60 } 61 62 63 } 65 | Popular Tags |