mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-25 16:42:07 +01:00
ListProfiles: Add shortcut methods generateKey() and encrypt()
This commit is contained in:
parent
d8cac7b9d7
commit
78ecf2f554
1 changed files with 18 additions and 0 deletions
|
@ -22,4 +22,22 @@ public interface ListProfiles {
|
||||||
*/
|
*/
|
||||||
List<Profile> subcommand(String command);
|
List<Profile> subcommand(String command);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a list of {@link Profile Profiles} supported by the {@link GenerateKey} implementation.
|
||||||
|
*
|
||||||
|
* @return profiles
|
||||||
|
*/
|
||||||
|
default List<Profile> generateKey() {
|
||||||
|
return subcommand("generate-key");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a list of {@link Profile Profiles} supported by the {@link Encrypt} implementation.
|
||||||
|
*
|
||||||
|
* @return profiles
|
||||||
|
*/
|
||||||
|
default List<Profile> encrypt() {
|
||||||
|
return subcommand("encrypt");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue