Package sop.external

Interface ExternalSOP.TempDirProvider

  • Enclosing class:
    ExternalSOP

    public static interface ExternalSOP.TempDirProvider
    This interface can be used to provide a directory in which external SOP binaries can temporarily store additional results of OpenPGP operations such that the binding classes can parse them out from there. Unfortunately, on Java you cannot open FileDescriptors arbitrarily, so we have to rely on temporary files to pass results. An example:
    sop decrypt
    can emit signature verifications via
    --verify-out=/path/to/tempfile
    . DecryptExternal will then parse the temp file to make the result available to consumers. Temporary files are deleted after being read, yet creating temp files for sensitive information on disk might pose a security risk. Use with care!
    • Method Detail

      • provideTempDirectory

        java.io.File provideTempDirectory()
                                   throws java.io.IOException
        Throws:
        java.io.IOException