mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-29 18:42:08 +01:00
Rename DetachInbandSignatureAndMessage to InlineDetach
This commit is contained in:
parent
0bfc12c1e1
commit
fd9192995f
4 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@ import picocli.CommandLine;
|
|||
import sop.Signatures;
|
||||
import sop.cli.picocli.SopCLI;
|
||||
import sop.exception.SOPGPException;
|
||||
import sop.operation.DetachInbandSignatureAndMessage;
|
||||
import sop.operation.InlineDetach;
|
||||
|
||||
@CommandLine.Command(name = "detach-inband-signature-and-message",
|
||||
description = "Split a clearsigned message",
|
||||
|
@ -32,7 +32,7 @@ public class DetachInbandSignatureAndMessageCmd implements Runnable {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
DetachInbandSignatureAndMessage detach = SopCLI.getSop().detachInbandSignatureAndMessage();
|
||||
InlineDetach detach = SopCLI.getSop().detachInbandSignatureAndMessage();
|
||||
if (detach == null) {
|
||||
throw new SOPGPException.UnsupportedSubcommand("Command 'detach-inband-signature-and-message' not implemented.");
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import sop.SOP;
|
|||
import sop.operation.Armor;
|
||||
import sop.operation.Dearmor;
|
||||
import sop.operation.Decrypt;
|
||||
import sop.operation.DetachInbandSignatureAndMessage;
|
||||
import sop.operation.InlineDetach;
|
||||
import sop.operation.Encrypt;
|
||||
import sop.operation.ExtractCert;
|
||||
import sop.operation.GenerateKey;
|
||||
|
@ -93,7 +93,7 @@ public class SOPTest {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DetachInbandSignatureAndMessage detachInbandSignatureAndMessage() {
|
||||
public InlineDetach detachInbandSignatureAndMessage() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@ package sop;
|
|||
import sop.operation.Armor;
|
||||
import sop.operation.Dearmor;
|
||||
import sop.operation.Decrypt;
|
||||
import sop.operation.DetachInbandSignatureAndMessage;
|
||||
import sop.operation.InlineDetach;
|
||||
import sop.operation.Encrypt;
|
||||
import sop.operation.ExtractCert;
|
||||
import sop.operation.GenerateKey;
|
||||
|
@ -91,5 +91,5 @@ public interface SOP {
|
|||
*/
|
||||
Dearmor dearmor();
|
||||
|
||||
DetachInbandSignatureAndMessage detachInbandSignatureAndMessage();
|
||||
InlineDetach detachInbandSignatureAndMessage();
|
||||
}
|
||||
|
|
|
@ -14,13 +14,13 @@ import sop.Signatures;
|
|||
/**
|
||||
* Split cleartext signed messages up into data and signatures.
|
||||
*/
|
||||
public interface DetachInbandSignatureAndMessage {
|
||||
public interface InlineDetach {
|
||||
|
||||
/**
|
||||
* Do not wrap the signatures in ASCII armor.
|
||||
* @return builder
|
||||
*/
|
||||
DetachInbandSignatureAndMessage noArmor();
|
||||
InlineDetach noArmor();
|
||||
|
||||
/**
|
||||
* Detach the provided cleartext signed message from its signatures.
|
Loading…
Reference in a new issue