You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AuthenticationCanceledException.java 903B

123456789101112131415161718192021222324252627282930
  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. import java.util.concurrent.CancellationException;
  12. /**
  13. * An exception to report that the user canceled the SSH authentication.
  14. */
  15. public class AuthenticationCanceledException extends CancellationException {
  16. // If this is not a CancellationException sshd will try other authentication
  17. // mechanisms.
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * Creates a new {@link AuthenticationCanceledException}.
  21. */
  22. public AuthenticationCanceledException() {
  23. super(SshdText.get().authenticationCanceled);
  24. }
  25. }