1 13 14 package org.ejbca.core.model.ca.certificateprofiles; 15 16 17 22 public class RootCACertificateProfile extends CertificateProfile{ 23 24 26 public static final String CERTIFICATEPROFILENAME = "ROOTCA"; 27 28 33 public RootCACertificateProfile() { 34 35 setType(TYPE_ROOTCA); 36 setAllowValidityOverride(true); 37 setUseKeyUsage(true); 38 setKeyUsage(new boolean[9]); 39 setKeyUsage(DIGITALSIGNATURE,true); 40 setKeyUsage(KEYCERTSIGN,true); 41 setKeyUsage(CRLSIGN,true); 42 setKeyUsageCritical(true); 43 44 } 45 46 48 public void upgrade(){ 49 if(Float.compare(LATEST_VERSION, getVersion()) != 0) { 50 super.upgrade(); 52 } 53 } 54 } 56 | Popular Tags |