Exemple #1
0
  public void slcsLoginFailed(String message, Exception optionalException) {

    myLogger.error("SLCS login failed.", optionalException);
    enablePanel(true);

    if (holder != null) {
      holder.proxyCreationFailed(message);
    }
  }
Exemple #2
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);
    }
  }