code: private void directorySanityChecks(File directory) {
  
      if (!directory.exists())
        throw new VOMSError("Local trust directory does not exists:"
          + directory.getAbsolutePath());
  
      if (!directory.isDirectory())
        throw new VOMSError("Local trust directory is not a directory:"
          + directory.getAbsolutePath());
  
      if (!directory.canRead())
        throw new VOMSError("Local trust directory is not readable:"
          + directory.getAbsolutePath());
  
      if (!directory.canExecute())
        throw new VOMSError("Local trust directory is not traversable:"
          + directory.getAbsolutePath());
  
    }
docs: Performs basic sanity checks on a directory that is supposed to contain
  VOMS AA certificates and LSC files.
  
  @param directory