You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewVOMSError("Local VOMS trusted certificate does not exist:"
334
-
+ certFile.getAbsolutePath());
329
+
thrownewVOMSError(
330
+
"Local VOMS trusted certificate does not exist:"+ certFile.getAbsolutePath());
335
331
336
332
if (!certFile.canRead())
337
-
thrownewVOMSError("Local VOMS trusted certificate is not readable:"
338
-
+ certFile.getAbsolutePath());
333
+
thrownewVOMSError(
334
+
"Local VOMS trusted certificate is not readable:"+ certFile.getAbsolutePath());
339
335
340
336
}
341
337
342
338
/**
343
-
* Performs basic sanity checks on a directory that is supposed to contain
344
-
* VOMS AA certificates and LSC files.
339
+
* Performs basic sanity checks on a directory that is supposed to contain VOMS AA certificates
340
+
* and LSC files.
345
341
*
346
342
* @param directory
347
343
*/
348
344
privatevoiddirectorySanityChecks(Filedirectory) {
349
345
350
346
if (!directory.exists())
351
-
thrownewVOMSError("Local trust directory does not exists:"
352
-
+ directory.getAbsolutePath());
347
+
thrownewVOMSError("Local trust directory does not exists:" + directory.getAbsolutePath());
353
348
354
349
if (!directory.isDirectory())
355
-
thrownewVOMSError("Local trust directory is not a directory:"
356
-
+ directory.getAbsolutePath());
350
+
thrownewVOMSError(
351
+
"Local trust directory is not a directory:"+ directory.getAbsolutePath());
357
352
358
353
if (!directory.canRead())
359
-
thrownewVOMSError("Local trust directory is not readable:"
360
-
+ directory.getAbsolutePath());
354
+
thrownewVOMSError("Local trust directory is not readable:" + directory.getAbsolutePath());
361
355
362
356
if (!directory.canExecute())
363
-
thrownewVOMSError("Local trust directory is not traversable:"
364
-
+ directory.getAbsolutePath());
357
+
thrownewVOMSError(
358
+
"Local trust directory is not traversable:"+ directory.getAbsolutePath());
365
359
366
360
}
367
361
@@ -380,7 +374,7 @@ public void loadTrustInformation() {
380
374
381
375
if (localTrustedDirs.isEmpty()) {
382
376
thrownewVOMSError(
383
-
"No local trust directory was specified for this trust store. Please provide at least one path where LSC and VOMS service certificates will be searched for.");
377
+
"No local trust directory was specified for this trust store. Please provide at least one path where LSC and VOMS service certificates will be searched for.");
384
378
}
385
379
386
380
cleanupStores();
@@ -404,8 +398,11 @@ public boolean accept(File pathname) {
404
398
});
405
399
406
400
for (FilevoDir : voDirs) {
407
-
loadLSCFromDirectory(voDir);
408
-
loadCertificatesFromDirectory(voDir);
401
+
402
+
if (voNames == null || voNames.contains(voDir.getName())) {
0 commit comments