250251252253254255256257258259260
return; }catch(IllegalArgumentException e){ throw new PAPException("The string passed as argument is not a valid certificate subject!", e); } }
3839404142434445
try{ return OpensslNameUtils.opensslToRfc2253(x500Subject); }catch(IllegalArgumentException e){ throw new PAPException("The string passed as argument is not a valid certificate subject!", e); } }
505152535455565758
return OpensslNameUtils.convertFromRfc2253(rfc2253Subject, false); }catch(IllegalArgumentException e){ throw new PAPException("The string passed as argument is not a valid certificate subject!", e); } }
312313314315316317318319320321322
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)); }
410411412413414415416417418419
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(); }
5455565758596061626364656667686970
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; }
8384858687888990919293949596
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); } }
106107108109110111112113114115116117118119
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); } }
129130131132133134135136137138139140
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); } }
163164165166167168169170171172173174175176
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); } }