Package org.ejbca.core.model.ca.certificateprofiles

Examples of org.ejbca.core.model.ca.certificateprofiles.XKMSCertificateProfile


    final Certificate certificate =
      ca.generateCertificate(new UserDataVO("NOUSERNAME", info.getSubjectDN(), 0, info.getSubjectAltName(), "NOEMAIL", 0,0,0,0, null,null,0,0,null),
          cmskeys.getPublic(),
          -1, // KeyUsage
          ca.getValidity(),
          new XKMSCertificateProfile(), // We can use the (simple) XKMS profile, since it uses the same values as we want for CMS
          null // sequence
      );
    certificatechain = new ArrayList<Certificate>();
    certificatechain.add(certificate);
    certificatechain.addAll(ca.getCertificateChain());
View Full Code Here


      keystore.load(null, null);                             
      final KeyPair xKMSkeys = KeyTools.genKeys(info.getKeySpec(), info.getKeyAlgorithm());
      final UserDataVO user = new UserDataVO("NOUSERNAME", info.getSubjectDN(), 0, info.getSubjectAltName(), "NOEMAIL", 0,0,0,0, null,null,0,0,null);
      final Certificate xKMSCertificate = ca.generateCertificate(user, xKMSkeys.getPublic(),
          -1, // KeyUsage
          ca.getValidity(), new XKMSCertificateProfile(),
          null // sequence
      );
      xKMScertificatechain = new ArrayList<Certificate>();
      xKMScertificatechain.add(xKMSCertificate);
      xKMScertificatechain.addAll(ca.getCertificateChain());
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.ca.certificateprofiles.XKMSCertificateProfile

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.