mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
Annotate fromId(code) methods with Nullable and add Nonnull requireFromId(code) methods
This commit is contained in:
parent
16b0d0730e
commit
e8b03834cb
24 changed files with 278 additions and 42 deletions
|
@ -70,7 +70,7 @@ public class DecryptImpl implements Decrypt {
|
|||
public DecryptImpl withSessionKey(SessionKey sessionKey) throws SOPGPException.UnsupportedOption {
|
||||
consumerOptions.setSessionKey(
|
||||
new org.pgpainless.util.SessionKey(
|
||||
SymmetricKeyAlgorithm.fromId(sessionKey.getAlgorithm()),
|
||||
SymmetricKeyAlgorithm.requireFromId(sessionKey.getAlgorithm()),
|
||||
sessionKey.getKey()));
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue