001// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
002//
003// SPDX-License-Identifier: Apache-2.0
004
005package org.pgpainless.exception;
006
007import org.bouncycastle.openpgp.PGPException;
008
009public class MessageNotIntegrityProtectedException extends PGPException {
010
011    public MessageNotIntegrityProtectedException() {
012        super("Message is encrypted using a 'Symmetrically Encrypted Data' (SED) packet, which enables certain types of attacks. " +
013                "A 'Symmetrically Encrypted Integrity Protected' (SEIP) packet should be used instead.");
014    }
015}