public void slcsLoginComplete(X509Certificate cert, PrivateKey privateKey) { try { enablePanel(true); if (holder != null) { GSSCredential proxy = PlainProxy.init(slcs.getCertificate(), slcs.getPrivateKey(), 24 * 10); holder.proxyCreated(CredentialHelpers.unwrapGlobusCredential(proxy)); } } catch (CredentialException e) { if (holder != null) { holder.proxyCreationFailed(e.getLocalizedMessage()); } myLogger.error("SLCS login could not be completed.", e); } }
@Override public GSSCredential createGSSCredentialInstance() { return CredentialHelpers.loadGssCredential(new File(getProxyFile().getValue())); }