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