Examples of PAPException


Examples of org.glite.authz.pap.common.exceptions.PAPException

   
        return;
       
      }catch(IllegalArgumentException e){
       
        throw new PAPException("The string passed as argument is not a valid certificate subject!", e);
       
      }

    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

      try
        return OpensslNameUtils.opensslToRfc2253(x500Subject);
       
      }catch(IllegalArgumentException e){
       
        throw new PAPException("The string passed as argument is not a valid certificate subject!", e);
      }
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

       
        return OpensslNameUtils.convertFromRfc2253(rfc2253Subject, false);
       
      }catch(IllegalArgumentException e){
       
        throw new PAPException("The string passed as argument is not a valid certificate subject!", e);
      }
     
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

            if (euid == null) {

                log.error("Cannot enstabilish user's effective user id.");

                throw new PAPException(String.format("Cannot enstabilish user's effective user id, please use the --%s or --%s, --%s options.",
                                                     OPT_PROXY_LONG,
                                                     OPT_CERT_LONG,
                                                     OPT_KEY_LONG));
            }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

        new PEMCredential(new FileInputStream(keyFile),
          new FileInputStream(certFile), pf);
     
    } catch (Exception e) {
      log.error(e.getMessage(),e);
      throw new PAPException(e.getMessage(),e);
    }
     
      return pf.getLastReadPassword();
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

            log.error("Unable to refresh cache, PAP not found: " + papAlias);
            return false;
        }
       
        if (!(pap.isRemote())) {
            throw new PAPException("\"" + papAlias + "\" is local, nothing to refresh");
        }

        try {
            DistributionModule.refreshCache(pap);

        } catch (Throwable t) {
            throw new PAPException(t.getMessage(), t);
        }

        return true;
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

        try {
            return loc.getHighLevelPolicyManagementService(new URL(url));

        } catch (MalformedURLException e) {
            throw new PAPException("Error contacting Highlevel Policy management service: " + e.getMessage(),
                                   e);

        } catch (ServiceException e) {
            throw new PAPException("Error contacting HighLevel Policy management service: " + e.getMessage(),
                                   e);

        }
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

        try {
            return loc.getPAPAuthorizationManagement(new URL(url));

        } catch (MalformedURLException e) {
            throw new PAPException("Error contacting PAP Authorization management service: " + e.getMessage(),
                                   e);

        } catch (ServiceException e) {
            throw new PAPException("Error contacting PAP Authorization management service: " + e.getMessage(),
                                   e);

        }
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

        try {
            return loc.getPAPManagementService(new URL(url));

        } catch (MalformedURLException e) {
            throw new PAPException("Error contacting PAP Management service: " + e.getMessage(), e);

        } catch (ServiceException e) {
            throw new PAPException("Error contacting PAP Management service: " + e.getMessage(), e);

        }
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.PAPException

        try {
            return loc.getProvisioningService(new URL(url));

        } catch (MalformedURLException e) {
            throw new PAPException("Error contacting Provisioning Policy management service: "
                    + e.getMessage(), e);

        } catch (ServiceException e) {
            throw new PAPException("Error contacting Provisioning Policy management service: "
                    + e.getMessage(), e);

        }
    }
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.