Exemple #1
0
  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);
    }
  }
Exemple #2
0
  @Override
  public GSSCredential createGSSCredentialInstance() {

    return CredentialHelpers.loadGssCredential(new File(getProxyFile().getValue()));
  }