1 13 14 package org.ejbca.core.model.ca.certextensions; 15 16 import org.bouncycastle.asn1.DEREncodable; 17 import org.bouncycastle.asn1.DERPrintableString; 18 import org.ejbca.core.model.ca.caadmin.CA; 19 import org.ejbca.core.model.ca.certificateprofiles.CertificateProfile; 20 import org.ejbca.core.model.ra.UserDataVO; 21 22 33 34 public class DummyAdvancedCertificateExtension extends CertificateExtension { 35 36 private static String PROPERTY_VALUE = "value"; 37 38 44 public DEREncodable getValue(UserDataVO userData, CA ca, 45 CertificateProfile certProfile) { 46 47 String value = getProperties().getProperty(PROPERTY_VALUE); 48 49 return new DERPrintableString(value); 50 } 51 52 } 53 | Popular Tags |