/*
* 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());
}
}