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.List;
import java.util.Properties; import java.util.Properties;
/**
* Implementation of the {@link SOP} API using an external SOP binary.
*/
public class ExternalSOP implements SOP { public class ExternalSOP implements SOP {
private final String binaryName; private final String binaryName;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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