2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-05-06 00:04:03 +02:00
|
|
|
package org.pgpainless.exception;
|
|
|
|
|
|
|
|
import org.bouncycastle.openpgp.PGPSignature;
|
|
|
|
|
2021-08-15 15:21:14 +02:00
|
|
|
public class KeyValidationError extends AssertionError {
|
2021-05-06 00:04:03 +02:00
|
|
|
|
2021-08-15 15:21:14 +02:00
|
|
|
public KeyValidationError(String userId, PGPSignature userIdSig, PGPSignature userIdRevocation) {
|
2021-05-06 00:04:03 +02:00
|
|
|
super("User-ID '" + userId + "' is not valid: Sig: " + userIdSig + " Rev: " + userIdRevocation);
|
|
|
|
}
|
|
|
|
}
|