package ch.ge.ve.commons.crypto.exceptions;
/*-
* #%L
* Common crypto utilities
* %%
* Copyright (C) 2015 - 2016 République et Canton de Genève
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Exception is to be thrown if the password provided to the private key container does not match the expected one.
* This case has to be specifically managed to ensure that the user can try to provide the password again.
*/
public class PrivateKeyPasswordMismatchException extends Exception {
public PrivateKeyPasswordMismatchException(String message) {
super(message);
}
public PrivateKeyPasswordMismatchException(String message, Throwable cause) {
super(message, cause);
}
public PrivateKeyPasswordMismatchException(Throwable cause) {
super(cause);
}
public PrivateKeyPasswordMismatchException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}