1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 00:02:06 +01:00

Add EncryptionOptions.hasEncryptionMethod()

This commit is contained in:
Paul Schaub 2023-01-31 18:19:08 +01:00
parent 9f98e4ce37
commit 695e03f8b6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -311,6 +311,16 @@ public class EncryptionOptions {
return this;
}
/**
* Return <pre>true</pre> iff the user specified at least one encryption method,
* <pre>false</pre> otherwise.
*
* @return encryption methods is not empty
*/
public boolean hasEncryptionMethod() {
return !encryptionMethods.isEmpty();
}
public interface EncryptionKeySelector {
List<PGPPublicKey> selectEncryptionSubkeys(List<PGPPublicKey> encryptionCapableKeys);
}