Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.

Commit 2c9760d

Browse files
committed
imported jgit source code
0 parents  commit 2c9760d

File tree

982 files changed

+232844
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

982 files changed

+232844
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.project
2+
/org.eclipse.jgit.benchmarks/dependency-reduced-pom.xml
3+
/target
4+
infer-out
5+
bazel-*
6+
7+
# Do not add editor- and OS-specific files like *~ (Emacs) and .DS_Store
8+
# (macOS). Instead, add them to $XDG_CONFIG_HOME/git/ignore
9+
# (~/.config/git/ignore if $XDG_CONFIG_HOME is not set) or
10+
# $GIT_DIR/info/exclude. See "git help gitignore" for details.

install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
mvn clean install -DskipTests
4+
5+
for m in org.eclipse.jgit org.eclipse.jgit.ssh.apache; do
6+
mvn install:install-file \
7+
-Dfile=$m/target/$m-LOCAL.jar \
8+
-DgroupId=com.github.appsmithorg.jgit \
9+
-DartifactId=$m \
10+
-Dversion=main-SNAPSHOT \
11+
-Dpackaging=jar
12+
done
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/target
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: %Bundle-Name
4+
Automatic-Module-Name: org.eclipse.jgit.ssh.apache
5+
Bundle-SymbolicName: org.eclipse.jgit.ssh.apache
6+
Bundle-Vendor: %Bundle-Vendor
7+
Bundle-Localization: plugin
8+
Bundle-ActivationPolicy: lazy
9+
Bundle-Version: 6.6.1.202309021850-r
10+
Bundle-RequiredExecutionEnvironment: JavaSE-11
11+
Export-Package: org.eclipse.jgit.internal.transport.sshd;version="6.6.1";x-internal:=true;
12+
uses:="org.apache.sshd.client,
13+
org.apache.sshd.client.auth,
14+
org.apache.sshd.client.auth.keyboard,
15+
org.apache.sshd.client.auth.pubkey,
16+
org.apache.sshd.client.config.hosts,
17+
org.apache.sshd.client.future,
18+
org.apache.sshd.client.keyverifier,
19+
org.apache.sshd.client.session,
20+
org.apache.sshd.common.config.keys,
21+
org.apache.sshd.common.io,
22+
org.apache.sshd.common.keyprovider,
23+
org.apache.sshd.common.signature,
24+
org.apache.sshd.common.util.buffer,
25+
org.eclipse.jgit.transport",
26+
org.eclipse.jgit.internal.transport.sshd.agent;version="6.6.1";x-internal:=true,
27+
org.eclipse.jgit.internal.transport.sshd.auth;version="6.6.1";x-internal:=true,
28+
org.eclipse.jgit.internal.transport.sshd.proxy;version="6.6.1";x-friends:="org.eclipse.jgit.ssh.apache.test",
29+
org.eclipse.jgit.transport.sshd;version="6.6.1";
30+
uses:="org.eclipse.jgit.transport,
31+
org.apache.sshd.client.config.hosts,
32+
org.apache.sshd.common.keyprovider,
33+
org.eclipse.jgit.util,
34+
org.apache.sshd.client.session,
35+
org.apache.sshd.client.keyverifier",
36+
org.eclipse.jgit.transport.sshd.agent;version="6.6.1"
37+
Import-Package: net.i2p.crypto.eddsa;version="[0.3.0,0.4.0)",
38+
org.apache.sshd.agent;version="[2.10.0,2.11.0)",
39+
org.apache.sshd.client;version="[2.10.0,2.11.0)",
40+
org.apache.sshd.client.auth;version="[2.10.0,2.11.0)",
41+
org.apache.sshd.client.auth.keyboard;version="[2.10.0,2.11.0)",
42+
org.apache.sshd.client.auth.password;version="[2.10.0,2.11.0)",
43+
org.apache.sshd.client.auth.pubkey;version="[2.10.0,2.11.0)",
44+
org.apache.sshd.client.channel;version="[2.10.0,2.11.0)",
45+
org.apache.sshd.client.config.hosts;version="[2.10.0,2.11.0)",
46+
org.apache.sshd.client.config.keys;version="[2.10.0,2.11.0)",
47+
org.apache.sshd.client.future;version="[2.10.0,2.11.0)",
48+
org.apache.sshd.client.keyverifier;version="[2.10.0,2.11.0)",
49+
org.apache.sshd.client.session;version="[2.10.0,2.11.0)",
50+
org.apache.sshd.client.session.forward;version="[2.10.0,2.11.0)",
51+
org.apache.sshd.common;version="[2.10.0,2.11.0)",
52+
org.apache.sshd.common.auth;version="[2.10.0,2.11.0)",
53+
org.apache.sshd.common.channel;version="[2.10.0,2.11.0)",
54+
org.apache.sshd.common.compression;version="[2.10.0,2.11.0)",
55+
org.apache.sshd.common.config.keys;version="[2.10.0,2.11.0)",
56+
org.apache.sshd.common.config.keys.loader;version="[2.10.0,2.11.0)",
57+
org.apache.sshd.common.config.keys.loader.openssh.kdf;version="[2.10.0,2.11.0)",
58+
org.apache.sshd.common.config.keys.u2f;version="[2.10.0,2.11.0)",
59+
org.apache.sshd.common.digest;version="[2.10.0,2.11.0)",
60+
org.apache.sshd.common.forward;version="[2.10.0,2.11.0)",
61+
org.apache.sshd.common.future;version="[2.10.0,2.11.0)",
62+
org.apache.sshd.common.helpers;version="[2.10.0,2.11.0)",
63+
org.apache.sshd.common.io;version="[2.10.0,2.11.0)",
64+
org.apache.sshd.common.kex;version="[2.10.0,2.11.0)",
65+
org.apache.sshd.common.kex.extension;version="[2.10.0,2.11.0)",
66+
org.apache.sshd.common.kex.extension.parser;version="[2.10.0,2.11.0)",
67+
org.apache.sshd.common.keyprovider;version="[2.10.0,2.11.0)",
68+
org.apache.sshd.common.mac;version="[2.10.0,2.11.0)",
69+
org.apache.sshd.common.random;version="[2.10.0,2.11.0)",
70+
org.apache.sshd.common.session;version="[2.10.0,2.11.0)",
71+
org.apache.sshd.common.session.helpers;version="[2.10.0,2.11.0)",
72+
org.apache.sshd.common.signature;version="[2.10.0,2.11.0)",
73+
org.apache.sshd.common.util;version="[2.10.0,2.11.0)",
74+
org.apache.sshd.common.util.buffer;version="[2.10.0,2.11.0)",
75+
org.apache.sshd.common.util.buffer.keys;version="[2.10.0,2.11.0)",
76+
org.apache.sshd.common.util.closeable;version="[2.10.0,2.11.0)",
77+
org.apache.sshd.common.util.io;version="[2.10.0,2.11.0)",
78+
org.apache.sshd.common.util.io.der;version="[2.10.0,2.11.0)",
79+
org.apache.sshd.common.util.io.functors;version="[2.10.0,2.11.0)",
80+
org.apache.sshd.common.util.io.resource;version="[2.10.0,2.11.0)",
81+
org.apache.sshd.common.util.logging;version="[2.10.0,2.11.0)",
82+
org.apache.sshd.common.util.net;version="[2.10.0,2.11.0)",
83+
org.apache.sshd.common.util.security;version="[2.10.0,2.11.0)",
84+
org.apache.sshd.core;version="[2.10.0,2.11.0)",
85+
org.apache.sshd.server.auth;version="[2.10.0,2.11.0)",
86+
org.apache.sshd.sftp;version="[2.10.0,2.11.0)",
87+
org.apache.sshd.sftp.client;version="[2.10.0,2.11.0)",
88+
org.apache.sshd.sftp.common;version="[2.10.0,2.11.0)",
89+
org.eclipse.jgit.annotations;version="[6.6.1,6.7.0)",
90+
org.eclipse.jgit.errors;version="[6.6.1,6.7.0)",
91+
org.eclipse.jgit.fnmatch;version="[6.6.1,6.7.0)",
92+
org.eclipse.jgit.internal.storage.file;version="[6.6.1,6.7.0)",
93+
org.eclipse.jgit.internal.transport.ssh;version="[6.6.1,6.7.0)",
94+
org.eclipse.jgit.nls;version="[6.6.1,6.7.0)",
95+
org.eclipse.jgit.transport;version="[6.6.1,6.7.0)",
96+
org.eclipse.jgit.util;version="[6.6.1,6.7.0)",
97+
org.slf4j;version="[1.7.0,2.0.0)"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: org.eclipse.jgit.ssh.apache - Sources
4+
Bundle-SymbolicName: org.eclipse.jgit.ssh.apache.source
5+
Bundle-Vendor: Eclipse.org - JGit
6+
Bundle-Version: 6.6.1.202309021850-r
7+
Eclipse-SourceBundle: org.eclipse.jgit.ssh.apache;version="6.6.1.202309021850-r";roots="."
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.eclipse.jgit</groupId>
9+
<artifactId>org.eclipse.jgit-parent</artifactId>
10+
<version>LOCAL</version>
11+
</parent>
12+
13+
<artifactId>org.eclipse.jgit.ssh.apache</artifactId>
14+
<name>JGit - Apache sshd-based SSH support</name>
15+
16+
<description>
17+
SSH support for JGit based on Apache MINA sshd
18+
</description>
19+
20+
<properties>
21+
<translate-qualifier/>
22+
<source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
23+
<eddsa-version>0.3.0</eddsa-version>
24+
</properties>
25+
26+
<dependencies>
27+
<dependency>
28+
<groupId>org.eclipse.jgit</groupId>
29+
<artifactId>org.eclipse.jgit</artifactId>
30+
<version>${project.version}</version>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.apache.sshd</groupId>
35+
<artifactId>sshd-osgi</artifactId>
36+
<version>${apache-sshd-version}</version>
37+
</dependency>
38+
39+
<dependency>
40+
<groupId>org.apache.sshd</groupId>
41+
<artifactId>sshd-sftp</artifactId>
42+
<version>${apache-sshd-version}</version>
43+
<exclusions>
44+
<exclusion>
45+
<groupId>org.apache.sshd</groupId>
46+
<artifactId>sshd-common</artifactId>
47+
</exclusion>
48+
<exclusion>
49+
<groupId>org.apache.sshd</groupId>
50+
<artifactId>sshd-core</artifactId>
51+
</exclusion>
52+
</exclusions>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>net.i2p.crypto</groupId>
57+
<artifactId>eddsa</artifactId>
58+
<version>${eddsa-version}</version>
59+
</dependency>
60+
61+
<dependency>
62+
<groupId>org.slf4j</groupId>
63+
<artifactId>slf4j-api</artifactId>
64+
</dependency>
65+
</dependencies>
66+
67+
<build>
68+
<sourceDirectory>src/</sourceDirectory>
69+
70+
<resources>
71+
<resource>
72+
<directory>resources/</directory>
73+
</resource>
74+
</resources>
75+
76+
<plugins>
77+
<plugin>
78+
<groupId>org.codehaus.mojo</groupId>
79+
<artifactId>aspectj-maven-plugin</artifactId>
80+
<version>1.15.0</version>
81+
<executions>
82+
<execution>
83+
<goals>
84+
<goal>compile</goal>
85+
<goal>test-compile</goal>
86+
</goals>
87+
</execution>
88+
</executions>
89+
<configuration>
90+
<complianceLevel>16</complianceLevel>
91+
<source>16</source>
92+
<target>16</target>
93+
<showWeaveInfo>true</showWeaveInfo>
94+
<verbose>true</verbose>
95+
<aspectLibraries>
96+
<aspectLibrary>
97+
<groupId>org.eclipse.jgit</groupId>
98+
<artifactId>org.eclipse.jgit.telemetry</artifactId>
99+
</aspectLibrary>
100+
</aspectLibraries>
101+
</configuration>
102+
</plugin>
103+
</plugins>
104+
</build>
105+
</project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jgit.transport.sshd.SshdSessionFactory
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
authenticationCanceled=SSH authentication canceled: no password given
2+
authenticationOnClosedSession=Authentication canceled: session is already closing or closed
3+
authGssApiAttempt={0}: trying mechanism OID {1}
4+
authGssApiExhausted={0}: no more mechanisms to try
5+
authGssApiFailure={0}: server refused authentication; mechanism {1}
6+
authGssApiNotTried={0}: not tried
7+
authGssApiPartialSuccess={0}: partial success with mechanism OID {1}, continue with authentication methods {2}
8+
authPasswordAttempt={0}: attempt {1}
9+
authPasswordChangeAttempt={0}: attempt {1} with password change
10+
authPasswordExhausted={0}: no more attempts
11+
authPasswordFailure={0}: server refused (wrong password)
12+
authPasswordNotTried={0}: not tried
13+
authPasswordPartialSuccess={0}: partial success, continue with authentication methods {1}
14+
authPubkeyAttempt={0}: trying {1} key {2} with signature type {3}
15+
authPubkeyAttemptAgent={0}: trying {1} key {2} from SSH agent with signature type {3}
16+
authPubkeyExhausted={0}: no more keys to try
17+
authPubkeyFailure={0}: server refused {1} key {2}
18+
authPubkeyNoKeys={0}: no keys to try
19+
authPubkeyPartialSuccess={0}: partial success for {1} key {2}, continue with authentication methods {3}
20+
cannotReadPublicKey=Cannot read public key from file {0}
21+
closeListenerFailed=Ssh session close listener failed
22+
configInvalidPath=Invalid path in ssh config key {0}: {1}
23+
configInvalidPattern=Invalid pattern in ssh config key {0}: {1}
24+
configInvalidPositive=Ssh config entry {0} must be a strictly positive number but is ''{1}''
25+
configInvalidProxyJump=Ssh config, host ''{0}'': Cannot parse ProxyJump ''{1}''
26+
configNoKnownAlgorithms=Ssh config ''{0}'' ''{1}'' resulted in empty list (none known, or all known removed); using default.
27+
configProxyJumpNotSsh=Non-ssh URI in ProxyJump ssh config
28+
configProxyJumpWithPath=ProxyJump ssh config: jump host specification must not have a path
29+
configUnknownAlgorithm=Ssh config {0}: ignoring unknown algorithm ''{1}'' in {2} {3}
30+
ftpCloseFailed=Closing the SFTP channel failed
31+
gssapiFailure=GSS-API error for mechanism OID {0}
32+
gssapiInitFailure=GSS-API initialization failure for mechanism {0}
33+
gssapiUnexpectedMechanism=Server {0} replied with unknown mechanism name ''{1}'' in {2} authentication
34+
gssapiUnexpectedMessage=Received unexpected ssh message {1} in {0} authentication
35+
identityFileCannotDecrypt=Given passphrase cannot decrypt identity {0}
36+
identityFileNoKey=No keys found in identity {0}
37+
identityFileMultipleKeys=Multiple key pairs found in identity {0}
38+
identityFileNotFound=Skipping identity ''{0}'': file not found
39+
identityFileUnsupportedFormat=Unsupported format in identity {0}
40+
invalidSignatureAlgorithm=Signature algorithm ''{0}'' is not valid for a key of type ''{1}''
41+
kexServerKeyInvalid=Server key did not validate
42+
keyEncryptedMsg=Key ''{0}'' is encrypted. Enter the passphrase to decrypt it.
43+
keyEncryptedPrompt=Passphrase
44+
keyEncryptedRetry=Encrypted key ''{0}'' could not be decrypted. Enter the passphrase again.
45+
keyLoadFailed=Could not load key ''{0}''
46+
knownHostsCouldNotUpdate=Could not update known hosts file {0}
47+
knownHostsFileLockedUpdate=Could not update known hosts file (locked) {0}
48+
knownHostsFileReadFailed=Failed to read known hosts file {0}
49+
knownHostsInvalidLine=Known hosts file {0} contains invalid line {1}
50+
knownHostsInvalidPath=Invalid path for known hosts file {0}
51+
knownHostsKeyFingerprints=The {0} key''s fingerprints are:
52+
knownHostsModifiedKeyAcceptPrompt=Accept this key and continue connecting all the same?
53+
knownHostsModifiedKeyDenyMsg=To resolve this add the correct host key to your known hosts file {0}
54+
knownHostsModifiedKeyStorePrompt=If so, also store the new key?
55+
knownHostsModifiedKeyWarning=WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\n\
56+
The connection might be compromised (man-in-the-middle attack).\n\
57+
It is also possible that the {0} key of the host has just been changed.\n\
58+
The expected {1} key for host ''{2}'' has the fingerprints:\n\
59+
{3}\n\
60+
{4}\n\
61+
The {0} key actually received has the fingerprints:\n\
62+
{5}\n\
63+
{6}
64+
knownHostsRevokedKeyMsg=Host ''{0}'' sent a key that is marked as revoked in the known hosts file {1}.
65+
knownHostsUnknownKeyMsg=The authenticity of host ''{0}'' cannot be established.
66+
knownHostsUnknownKeyPrompt=Accept and store this key, and continue connecting?
67+
knownHostsUnknownKeyType=Cannot read server key from known hosts file {0}; line {1}
68+
knownHostsUserAskCreationMsg=File {0} does not exist.
69+
knownHostsUserAskCreationPrompt=Create file {0} ?
70+
loginDenied=Cannot log in at {0}:{1}
71+
passwordPrompt=Password
72+
proxyCannotAuthenticate=Cannot authenticate to proxy {0}
73+
proxyHttpFailure=HTTP Proxy connection to {0} failed with code {1}: {2}
74+
proxyHttpInvalidUserName=HTTP proxy connection {0} with invalid user name; must not contain colons: {1}
75+
proxyHttpUnexpectedReply=Unexpected HTTP proxy response from {0}: {1}
76+
proxyHttpUnspecifiedFailureReason=unspecified reason
77+
proxyJumpAbort=ProxyJump chain too long at {0}
78+
proxyPasswordPrompt=Proxy password
79+
proxySocksAuthenticationFailed=Authentication to SOCKS5 proxy {0} failed
80+
proxySocksFailureForbidden=SOCKS5 proxy {0}: connection to {1} not allowed by ruleset
81+
proxySocksFailureGeneral=SOCKS5 proxy {0}: general failure
82+
proxySocksFailureHostUnreachable=SOCKS5 proxy {0}: host unreachable {1}
83+
proxySocksFailureNetworkUnreachable=SOCKS5 proxy {0}: network unreachable {1}
84+
proxySocksFailureRefused=SOCKS5 proxy {0}: connection refused {1}
85+
proxySocksFailureTTL=TTL expired in SOCKS5 proxy connection {0}
86+
proxySocksFailureUnspecified=Unspecified failure in SOCKS5 proxy connection {0}
87+
proxySocksFailureUnsupportedAddress=SOCKS5 proxy {0} does not support address type
88+
proxySocksFailureUnsupportedCommand=SOCKS5 proxy {0} does not support CONNECT command
89+
proxySocksGssApiFailure=Cannot authenticate with GSS-API to SOCKS5 proxy {0}
90+
proxySocksGssApiMessageTooShort=SOCKS5 proxy {0} sent too short message
91+
proxySocksGssApiUnknownMessage=SOCKS5 proxy {0} sent unexpected GSS-API message type, expected 1, got {1}
92+
proxySocksGssApiVersionMismatch=SOCKS5 proxy {0} sent wrong GSS-API version number, expected 1, got {1}
93+
proxySocksNoRemoteHostName=Could not send remote address {0}
94+
proxySocksPasswordTooLong=Password for proxy {0} must be at most 255 bytes long, is {1} bytes
95+
proxySocksUnexpectedMessage=Unexpected message received from SOCKS5 proxy {0}; client state {1}: {2}
96+
proxySocksUnexpectedVersion=Expected SOCKS version 5, got {0}
97+
proxySocksUsernameTooLong=User name for proxy {0} must be at most 255 bytes long, is {1} bytes: {2}
98+
pubkeyAuthAddKeyToAgentError=Could not add {0} key with fingerprint {1} to the SSH agent
99+
pubkeyAuthAddKeyToAgentQuestion=Add the {0} key with fingerprint {1} to the SSH agent?
100+
pubkeyAuthWrongCommand=Public key authentication received unknown SSH command {0} from {1} ({2})
101+
pubkeyAuthWrongKey=Public key authentication received wrong key; sent {0}, got back {1} from {2} ({3})
102+
pubkeyAuthWrongSignatureAlgorithm=Public key authentication requested signature type {0} but got back {1} from {2} ({3})
103+
serverIdNotReceived=No server identification received within {0} bytes
104+
serverIdTooLong=Server identification is longer than 255 characters (including line ending): {0}
105+
serverIdWithNul=Server identification contains a NUL character: {0}
106+
sessionCloseFailed=Closing the session failed
107+
sessionWithoutUsername=SSH session created without user name; cannot authenticate
108+
sshAgentEdDSAFormatError=Cannot add ed25519 key to the SSH agent because it is encoded as {0} instead of PKCS#8
109+
sshAgentPayloadLengthError=Expected {0,choice,0#no bytes|1#one byte|1<{0} bytes} but got {1}
110+
sshAgentReplyLengthError=Invalid SSH agent reply message length {0} after command {1}
111+
sshAgentReplyUnexpected=Unexpected reply from ssh-agent: {0}
112+
sshAgentShortReadBuffer=Short read from SSH agent
113+
sshAgentUnknownKey=SSH agent delivered a key that cannot be handled
114+
sshAgentWrongKeyLength=SSH agent delivered illogical key length {0} at offset {1} in buffer of length {2}
115+
sshAgentWrongNumberOfKeys=Invalid number of SSH agent keys: {0}
116+
sshClosingDown=Apache MINA sshd session factory is closing down; cannot create new ssh sessions on this factory
117+
sshCommandTimeout={0} timed out after {1} seconds while opening the channel
118+
sshProcessStillRunning={0} is not yet completed, cannot get exit code
119+
sshProxySessionCloseFailed=Error while closing proxy session {0}
120+
unknownProxyProtocol=Ignoring unknown proxy protocol {0}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (C) 2020, Thomas Wolf <[email protected]> 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+
}

0 commit comments

Comments
 (0)