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

Examples of org.ejbca.core.model.ca.certextensions.CertificateExtensionException


        SubjectPublicKeyInfo spki;
    try {
      spki = new SubjectPublicKeyInfo(
                (ASN1Sequence) new ASN1InputStream(new ByteArrayInputStream(userPublicKey.getEncoded())).readObject());
    } catch (IOException e) {
      throw new CertificateExtensionException("IOException parsing user public key: "+e.getMessage(), e);
    }
    return new org.bouncycastle.asn1.x509.SubjectKeyIdentifier(spki);
 
View Full Code Here


        ret = new org.bouncycastle.asn1.x509.AuthorityKeyIdentifier(seq);
        log.debug("Using AuthorityKeyIdentifier from CA-certificates SubjectKeyIdentifier.");
      }
    }
    } catch (IOException e) {
      throw new CertificateExtensionException("IOException parsing CA public key: "+e.getMessage(), e);
    }
    if (ret == null) {
      log.error("AuthorityKeyIdentifier is used, but no key identifier can be created!");
    }
    return ret;
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.ca.certextensions.CertificateExtensionException

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.