Examples of CVCPublicKey


Examples of org.ejbca.cvc.CVCPublicKey

        }
        CVCObject parsedObject = CertificateParser.parseCVCObject(Base64.decode(cvcreq.getBytes()));
        if (parsedObject instanceof CVCAuthenticatedRequest) {
          log.debug("Received an authenticated request, could be an initial DV request signed by CVCA or a renewal for DV or IS.");
          CVCAuthenticatedRequest authreq = (CVCAuthenticatedRequest)parsedObject;
          CVCPublicKey cvcKey = authreq.getRequest().getCertificateBody().getPublicKey();
          String algorithm = AlgorithmUtil.getAlgorithmName(cvcKey.getObjectIdentifier());
          log.debug("Received request has a public key with algorithm: "+algorithm);
          HolderReferenceField holderRef = authreq.getRequest().getCertificateBody().getHolderReference();
          CAReferenceField caRef = authreq.getAuthorityReference();

          // Check to see that the inner signature does not also verify using an old certificate
View Full Code Here

Examples of org.ejbca.cvc.CVCPublicKey

        if (log.isDebugEnabled()) {
            log.debug("certSignatureAlgorithm is: "+certSignatureAlgorithm);         
        }
    } else if (StringUtils.equals(cert.getType(), "CVC")) {
      CardVerifiableCertificate cvccert = (CardVerifiableCertificate)cert;
      CVCPublicKey cvcpk;
      try {
        cvcpk = cvccert.getCVCertificate().getCertificateBody().getPublicKey();
        OIDField oid = cvcpk.getObjectIdentifier();
        certSignatureAlgorithm = AlgorithmUtil.getAlgorithmName(oid);
      } catch (NoSuchFieldException e) {
        log.error("NoSuchFieldException: ", e);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.