Examples of BouncyCastleCertProcessingFactory


Examples of org.globus.gsi.bc.BouncyCastleCertProcessingFactory

  /*
   * Create the actual proxy
   */
  private void sign() {
    try {
      BouncyCastleCertProcessingFactory factory = BouncyCastleCertProcessingFactory
          .getDefault();

      X509ExtensionSet extSet = null;

      // if (proxyCertInfo != null) {
      // extSet = new X509ExtensionSet();
      // if (CertUtil.isGsi4Proxy(proxyType)) {
      // // RFC compliant OID
      // extSet.add(new ProxyCertInfoExtension(proxyCertInfo));
      // } else {
      // // old OID
      // extSet.add(new GlobusProxyCertInfoExtension(proxyCertInfo));
      // }
      // }

      proxy = factory.createCredential(certificates, userKey, bits,
          lifetime, proxyType, extSet);
    } catch (GeneralSecurityException e) {
      System.err.println("Failed to create a proxy: " + e.getMessage());
    }
  }
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.