mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Add EncryptionOptions.hasEncryptionMethod()
This commit is contained in:
parent
9f98e4ce37
commit
695e03f8b6
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue