Add javadoc comments on top of external sop operations

This commit is contained in:
Paul Schaub 2023-01-19 17:29:29 +01:00
parent 4fc8ffab42
commit 990d314709
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
13 changed files with 39 additions and 0 deletions

View File

@ -43,6 +43,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link SOP} API using an external SOP binary.
*/
public class ExternalSOP implements SOP {
private final String binaryName;

View File

@ -16,6 +16,9 @@ import java.util.ArrayList;
import java.util.Properties;
import java.util.List;
/**
* Implementation of the {@link Armor} operation using an external SOP binary.
*/
public class ArmorExternal implements Armor {
private final List<String> commandList = new ArrayList<>();

View File

@ -15,6 +15,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link Dearmor} operation using an external SOP binary.
*/
public class DearmorExternal implements Dearmor {
private final List<String> commandList = new ArrayList<>();

View File

@ -25,6 +25,9 @@ import java.util.Date;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link Decrypt} operation using an external SOP binary.
*/
public class DecryptExternal implements Decrypt {
private final ExternalSOP.TempDirProvider tempDirProvider;

View File

@ -23,6 +23,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link DetachedSign} operation using an external SOP binary.
*/
public class DetachedSignExternal implements DetachedSign {
private final ExternalSOP.TempDirProvider tempDirProvider;

View File

@ -23,6 +23,9 @@ import java.util.List;
import java.util.Properties;
import java.util.Set;
/**
* Implementation of the {@link DetachedVerify} operation using an external SOP binary.
*/
public class DetachedVerifyExternal implements DetachedVerify {
private final List<String> commandList = new ArrayList<>();

View File

@ -16,6 +16,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link Encrypt} operation using an external SOP binary.
*/
public class EncryptExternal implements Encrypt {
private final List<String> commandList = new ArrayList<>();

View File

@ -14,6 +14,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link ExtractCert} operation using an external SOP binary.
*/
public class ExtractCertExternal implements ExtractCert {
private final List<String> commandList = new ArrayList<>();

View File

@ -13,6 +13,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link GenerateKey} operation using an external SOP binary.
*/
public class GenerateKeyExternal implements GenerateKey {
private final List<String> commandList = new ArrayList<>();

View File

@ -20,6 +20,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link InlineDetach} operation using an external SOP binary.
*/
public class InlineDetachExternal implements InlineDetach {
private final ExternalSOP.TempDirProvider tempDirProvider;

View File

@ -16,6 +16,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link InlineSign} operation using an external SOP binary.
*/
public class InlineSignExternal implements InlineSign {
private final List<String> commandList = new ArrayList<>();

View File

@ -23,6 +23,9 @@ import java.util.Date;
import java.util.List;
import java.util.Properties;
/**
* Implementation of the {@link InlineVerify} operation using an external SOP binary.
*/
public class InlineVerifyExternal implements InlineVerify {
private final ExternalSOP.TempDirProvider tempDirProvider;

View File

@ -12,6 +12,9 @@ import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
/**
* Implementation of the {@link Version} operation using an external SOP binary.
*/
public class VersionExternal implements Version {
private final Runtime runtime = Runtime.getRuntime();