Add note discouraging reuse of subcommand objects

This commit is contained in:
Paul Schaub 2023-04-17 13:07:54 +02:00
parent 64c0fb11bc
commit 9bc391fc7c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -20,6 +20,11 @@ import sop.operation.Version;
/**
* Stateless OpenPGP Interface.
* This class provides a stateless interface to various OpenPGP related operations.
* <br>
* Note: Subcommand objects acquired by calling any method of this interface are not intended for reuse.
* If you for example need to generate multiple keys, make a dedicated call to {@link #generateKey()} once per
* key generation.
*/
public interface SOP {