Package ome.io.nio

Interface ReaderSecurityCheck


  • public interface ReaderSecurityCheck
    Check that OMERO permissions violations are not being attempted by means of a Bio-Formats readers' I/O. Cf. 2019-SV1.
    Since:
    5.5.5
    • Method Detail

      • assertUsedFilesReadable

        void assertUsedFilesReadable​(loci.formats.IFormatReader reader)
                              throws ome.conditions.SecurityViolation
        Check that the used files reported by the reader are safe. Call as next step after IFormatHandler.setId(String).
        Parameters:
        reader - an open Bio-Formats reader
        Throws:
        ome.conditions.SecurityViolation - if a security issue was identified with any of the used files reported by the reader