Package sop.external
Class ExternalSOP
- java.lang.Object
-
- sop.external.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 interfaceExternalSOP.TempDirProviderThis 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.
-
Constructor Summary
Constructors Constructor Description ExternalSOP(java.lang.String binaryName)ExternalSOP(java.lang.String binaryName, java.util.Properties properties)ExternalSOP(java.lang.String binaryName, java.util.Properties properties, ExternalSOP.TempDirProvider tempDirProvider)ExternalSOP(java.lang.String binaryName, ExternalSOP.TempDirProvider tempDirProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.operation.Armorarmor()sop.operation.Dearmordearmor()sop.operation.Decryptdecrypt()static ExternalSOP.TempDirProviderdefaultTempDirProvider()Default implementation of theExternalSOP.TempDirProviderwhich stores temporary files in the systems temp dir (Files.createTempDirectory(String, FileAttribute[])).sop.operation.DetachedSigndetachedSign()sop.operation.DetachedVerifydetachedVerify()sop.operation.Encryptencrypt()sop.operation.ExtractCertextractCert()static voidfinish(java.lang.Process process)sop.operation.GenerateKeygenerateKey()sop.operation.InlineDetachinlineDetach()sop.operation.InlineSigninlineSign()sop.operation.InlineVerifyinlineVerify()static java.util.List<java.lang.String>propertiesToEnv(java.util.Properties properties)static java.lang.StringreadFully(java.io.InputStream inputStream)static sop.Readyready(java.lang.Runtime runtime, java.util.List<java.lang.String> commandList, java.util.List<java.lang.String> envList)static sop.Readyready(java.lang.Runtime runtime, java.util.List<java.lang.String> commandList, java.util.List<java.lang.String> envList, java.io.InputStream standardIn)sop.operation.Versionversion()
-
-
-
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, ExternalSOP.TempDirProvider tempDirProvider)
-
ExternalSOP
public ExternalSOP(java.lang.String binaryName, java.util.Properties properties, ExternalSOP.TempDirProvider tempDirProvider)
-
-
Method Detail
-
version
public sop.operation.Version version()
- Specified by:
versionin interfacesop.SOP
-
generateKey
public sop.operation.GenerateKey generateKey()
- Specified by:
generateKeyin interfacesop.SOP
-
extractCert
public sop.operation.ExtractCert extractCert()
- Specified by:
extractCertin interfacesop.SOP
-
detachedSign
public sop.operation.DetachedSign detachedSign()
- Specified by:
detachedSignin interfacesop.SOP
-
inlineSign
public sop.operation.InlineSign inlineSign()
- Specified by:
inlineSignin interfacesop.SOP
-
detachedVerify
public sop.operation.DetachedVerify detachedVerify()
- Specified by:
detachedVerifyin interfacesop.SOP
-
inlineVerify
public sop.operation.InlineVerify inlineVerify()
- Specified by:
inlineVerifyin interfacesop.SOP
-
inlineDetach
public sop.operation.InlineDetach inlineDetach()
- Specified by:
inlineDetachin interfacesop.SOP
-
encrypt
public sop.operation.Encrypt encrypt()
- Specified by:
encryptin interfacesop.SOP
-
decrypt
public sop.operation.Decrypt decrypt()
- Specified by:
decryptin interfacesop.SOP
-
armor
public sop.operation.Armor armor()
- Specified by:
armorin interfacesop.SOP
-
dearmor
public sop.operation.Dearmor dearmor()
- Specified by:
dearmorin interfacesop.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 theExternalSOP.TempDirProviderwhich stores temporary files in the systems temp dir (Files.createTempDirectory(String, FileAttribute[])).- Returns:
- default implementation
-
-