Implement sop encrypt --profile=XXX

This commit is contained in:
Paul Schaub 2023-04-14 15:04:51 +02:00
parent f4ff5f89f7
commit 8a66f0bc4f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 38 additions and 0 deletions

View file

@ -85,6 +85,12 @@ public class EncryptExternal implements Encrypt {
return this;
}
@Override
public Encrypt profile(String profileName) {
commandList.add("--profile=" + profileName);
return this;
}
@Override
public Ready plaintext(InputStream plaintext)
throws IOException, SOPGPException.KeyIsProtected {