mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 21:07:57 +01:00
Add javadoc comments on top of external sop operations
This commit is contained in:
parent
4fc8ffab42
commit
990d314709
13 changed files with 39 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue