// a simple crmf is not a complete PKI message, as desired by the CrmfRequestMessage class
//PKIMessage msg = PKIMessage.getInstance(new ASN1InputStream(new ByteArrayInputStream(request)).readObject());
//CrmfRequestMessage reqmsg = new CrmfRequestMessage(msg, null, true, null);
//imsg = reqmsg;
} else if (reqType == REQTYPE_CVC) {
CVCObject parsedObject = CertificateParser.parseCVCObject(Base64.decode(req.getBytes()));
// We will handle both the case if the request is an authenticated request, i.e. with an outer signature
// and when the request is missing the (optional) outer signature.
CVCertificate cvccert = null;
if (parsedObject instanceof CVCAuthenticatedRequest) {
CVCAuthenticatedRequest cvcreq = (CVCAuthenticatedRequest)parsedObject;