SOP: Fix mapping of encryption format

This commit is contained in:
Paul Schaub 2022-03-30 13:14:36 +02:00
parent 9497cbaeb1
commit c31fd7d5e0
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 1 additions and 2 deletions

View File

@ -125,10 +125,9 @@ public class EncryptImpl implements Encrypt {
private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) { private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) {
switch (encryptAs) { switch (encryptAs) {
case Binary: case Binary:
case MIME:
return StreamEncoding.BINARY; return StreamEncoding.BINARY;
case Text: case Text:
return StreamEncoding.TEXT;
case MIME:
return StreamEncoding.UTF8; return StreamEncoding.UTF8;
} }
throw new IllegalArgumentException("Invalid value encountered: " + encryptAs); throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);