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