All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pgpainless.exception.WrongPassphraseException Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version
// SPDX-FileCopyrightText: 2021 Paul Schaub 
//
// SPDX-License-Identifier: Apache-2.0

package org.pgpainless.exception;

import org.bouncycastle.openpgp.PGPException;

public class WrongPassphraseException extends PGPException {

    public WrongPassphraseException(String message) {
        super(message);
    }

    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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy