mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
Add RevokedKeyException
This commit is contained in:
parent
3e7e6df3f9
commit
374e6452f0
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ public abstract class KeyException extends RuntimeException {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class RevokedKeyException extends KeyException {
|
||||||
|
|
||||||
|
public RevokedKeyException(@Nonnull OpenPgpFingerprint fingerprint) {
|
||||||
|
super("Key " + fingerprint + " appears to be revoked.", fingerprint);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class UnacceptableEncryptionKeyException extends KeyException {
|
public static class UnacceptableEncryptionKeyException extends KeyException {
|
||||||
|
|
||||||
public UnacceptableEncryptionKeyException(@Nonnull OpenPgpFingerprint fingerprint) {
|
public UnacceptableEncryptionKeyException(@Nonnull OpenPgpFingerprint fingerprint) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue