1 13 14 19 package org.ejbca.core.model.ca.certificateprofiles; 20 21 22 23 28 public class CACertificateProfile extends CertificateProfile{ 29 30 public static final String CERTIFICATEPROFILENAME = "SUBCA"; 32 33 35 40 public CACertificateProfile() { 41 42 setType(TYPE_SUBCA); 43 setAllowValidityOverride(true); 44 setUseKeyUsage(true); 45 setKeyUsage(new boolean[9]); 46 setKeyUsage(DIGITALSIGNATURE,true); 47 setKeyUsage(KEYCERTSIGN,true); 48 setKeyUsage(CRLSIGN,true); 49 setKeyUsageCritical(true); 50 51 } 52 53 public void upgrade(){ 55 if(Float.compare(LATEST_VERSION, getVersion()) != 0) { 56 super.upgrade(); 58 } 59 } 60 61 } 63 | Popular Tags |