2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-05-14 13:18:34 +02:00
|
|
|
package org.pgpainless.exception;
|
|
|
|
|
|
|
|
import org.bouncycastle.openpgp.PGPException;
|
|
|
|
|
|
|
|
public class WrongPassphraseException extends PGPException {
|
|
|
|
|
2021-09-09 20:31:02 +02:00
|
|
|
public WrongPassphraseException(String message) {
|
|
|
|
super(message);
|
|
|
|
}
|
|
|
|
|
2021-05-14 13:18:34 +02:00
|
|
|
public WrongPassphraseException(long keyId, PGPException cause) {
|
|
|
|
this("Wrong passphrase provided for key " + Long.toHexString(keyId), cause);
|
|
|
|
}
|
|
|
|
|
|
|
|
public WrongPassphraseException(String message, PGPException cause) {
|
|
|
|
super(message, cause);
|
|
|
|
}
|
|
|
|
}
|