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