Package sop.external

Class ExternalSOP

  • All Implemented Interfaces:
    sop.SOP

    public class ExternalSOP
    extends java.lang.Object
    implements sop.SOP
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      sop.operation.Armor armor()  
      sop.operation.Dearmor dearmor()  
      sop.operation.Decrypt decrypt()  
      static ExternalSOP.TempDirProvider defaultTempDirProvider()
      Default implementation of the ExternalSOP.TempDirProvider which stores temporary files in the systems temp dir (Files.createTempDirectory(String, FileAttribute[])).
      sop.operation.DetachedSign detachedSign()  
      sop.operation.DetachedVerify detachedVerify()  
      sop.operation.Encrypt encrypt()  
      sop.operation.ExtractCert extractCert()  
      static void finish​(java.lang.Process process)  
      sop.operation.GenerateKey generateKey()  
      sop.operation.InlineDetach inlineDetach()  
      sop.operation.InlineSign inlineSign()  
      sop.operation.InlineVerify inlineVerify()  
      static java.util.List<java.lang.String> propertiesToEnv​(java.util.Properties properties)  
      static java.lang.String readFully​(java.io.InputStream inputStream)  
      static sop.Ready ready​(java.lang.Runtime runtime, java.util.List<java.lang.String> commandList, java.util.List<java.lang.String> envList)  
      static sop.Ready ready​(java.lang.Runtime runtime, java.util.List<java.lang.String> commandList, java.util.List<java.lang.String> envList, java.io.InputStream standardIn)  
      sop.operation.Version version()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface sop.SOP

        sign, verify
    • Constructor Detail

      • ExternalSOP

        public ExternalSOP​(java.lang.String binaryName)
      • ExternalSOP

        public ExternalSOP​(java.lang.String binaryName,
                           java.util.Properties properties)
      • ExternalSOP

        public ExternalSOP​(java.lang.String binaryName,
                           java.util.Properties properties,
                           ExternalSOP.TempDirProvider tempDirProvider)
    • Method Detail

      • version

        public sop.operation.Version version()
        Specified by:
        version in interface sop.SOP
      • generateKey

        public sop.operation.GenerateKey generateKey()
        Specified by:
        generateKey in interface sop.SOP
      • extractCert

        public sop.operation.ExtractCert extractCert()
        Specified by:
        extractCert in interface sop.SOP
      • detachedSign

        public sop.operation.DetachedSign detachedSign()
        Specified by:
        detachedSign in interface sop.SOP
      • inlineSign

        public sop.operation.InlineSign inlineSign()
        Specified by:
        inlineSign in interface sop.SOP
      • detachedVerify

        public sop.operation.DetachedVerify detachedVerify()
        Specified by:
        detachedVerify in interface sop.SOP
      • inlineVerify

        public sop.operation.InlineVerify inlineVerify()
        Specified by:
        inlineVerify in interface sop.SOP
      • inlineDetach

        public sop.operation.InlineDetach inlineDetach()
        Specified by:
        inlineDetach in interface sop.SOP
      • encrypt

        public sop.operation.Encrypt encrypt()
        Specified by:
        encrypt in interface sop.SOP
      • decrypt

        public sop.operation.Decrypt decrypt()
        Specified by:
        decrypt in interface sop.SOP
      • armor

        public sop.operation.Armor armor()
        Specified by:
        armor in interface sop.SOP
      • dearmor

        public sop.operation.Dearmor dearmor()
        Specified by:
        dearmor in interface sop.SOP
      • finish

        public static void finish​(java.lang.Process process)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • propertiesToEnv

        public static java.util.List<java.lang.String> propertiesToEnv​(java.util.Properties properties)
      • readFully

        public static java.lang.String readFully​(java.io.InputStream inputStream)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • ready

        public static sop.Ready ready​(java.lang.Runtime runtime,
                                      java.util.List<java.lang.String> commandList,
                                      java.util.List<java.lang.String> envList)
      • ready

        public static sop.Ready ready​(java.lang.Runtime runtime,
                                      java.util.List<java.lang.String> commandList,
                                      java.util.List<java.lang.String> envList,
                                      java.io.InputStream standardIn)
      • defaultTempDirProvider

        public static ExternalSOP.TempDirProvider defaultTempDirProvider()
        Default implementation of the ExternalSOP.TempDirProvider which stores temporary files in the systems temp dir (Files.createTempDirectory(String, FileAttribute[])).
        Returns:
        default implementation