Package org.ejbca.core.model.ca.certextensions.standard

Examples of org.ejbca.core.model.ca.certextensions.standard.StandardCertificateExtension


   * given its object identifier
   *
   * @returns null if the CertificateExtension doesn't exist
   */
  public CertificateExtension getStandardCertificateExtension(String oid, CertificateProfile certProf){
    StandardCertificateExtension ret = null;
    String classPath = (String)standardCertificateExtensions.get(oid);
    if (classPath != null) {
      try {
        Class<?> implClass = Class.forName(classPath);
        ret = (StandardCertificateExtension)implClass.newInstance();         
        ret.init(certProf);                   
      } catch (ClassNotFoundException e) {
        log.error(intres.getLocalizedMessage("certext.noextensionforid", oid), e);     
      } catch (InstantiationException e) {
        log.error(intres.getLocalizedMessage("certext.noextensionforid", oid), e);     
      } catch (IllegalAccessException e) {
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.ca.certextensions.standard.StandardCertificateExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.