1 /*
2 * Copyright (C) 2020, Thomas Wolf <thomas.wolf@paranor.ch> and others
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Distribution License v. 1.0 which is available at
6 * https://www.eclipse.org/org/documents/edl-v10.php.
7 *
8 * SPDX-License-Identifier: BSD-3-Clause
9 */
10 package org.eclipse.jgit.internal.transport.sshd;
11
12 import java.util.concurrent.CancellationException;
13
14 /**
15 * An exception to report that the user canceled the SSH authentication.
16 */
17 public class AuthenticationCanceledException extends CancellationException {
18
19 // If this is not a CancellationException sshd will try other authentication
20 // mechanisms.
21
22 private static final long serialVersionUID = 1L;
23
24 /**
25 * Creates a new {@link AuthenticationCanceledException}.
26 */
27 public AuthenticationCanceledException() {
28 super(SshdText.get().authenticationCanceled);
29 }
30 }