Class JGitClientSession
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractInnerCloseable
org.apache.sshd.common.kex.AbstractKexFactoryManager
org.apache.sshd.common.session.helpers.SessionHelper
org.apache.sshd.common.session.helpers.AbstractSession
org.apache.sshd.client.session.AbstractClientSession
org.apache.sshd.client.session.ClientSessionImpl
org.eclipse.jgit.internal.transport.sshd.JGitClientSession
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,org.apache.sshd.client.ClientAuthenticationManager,org.apache.sshd.client.session.ClientProxyConnectorHolder,org.apache.sshd.client.session.ClientSession,org.apache.sshd.common.AttributeRepository,org.apache.sshd.common.AttributeStore,org.apache.sshd.common.auth.MutableUserHolder,org.apache.sshd.common.auth.UserAuthFactoriesManager<org.apache.sshd.client.session.ClientSession,,org.apache.sshd.client.auth.UserAuth, org.apache.sshd.client.auth.UserAuthFactory> org.apache.sshd.common.auth.UsernameHolder,org.apache.sshd.common.channel.ChannelListenerManager,org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolver,org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager,org.apache.sshd.common.Closeable,org.apache.sshd.common.FactoryManagerHolder,org.apache.sshd.common.forward.PortForwardingEventListenerManager,org.apache.sshd.common.forward.PortForwardingInformationProvider,org.apache.sshd.common.forward.PortForwardingManager,org.apache.sshd.common.kex.extension.KexExtensionHandlerManager,org.apache.sshd.common.kex.KexFactoryManager,org.apache.sshd.common.keyprovider.KeyIdentityProviderHolder,org.apache.sshd.common.PropertyResolver,org.apache.sshd.common.session.ReservedSessionMessagesManager,org.apache.sshd.common.session.Session,org.apache.sshd.common.session.SessionContext,org.apache.sshd.common.session.SessionDisconnectHandlerManager,org.apache.sshd.common.session.SessionHeartbeatController,org.apache.sshd.common.session.SessionListenerManager,org.apache.sshd.common.session.UnknownChannelReferenceHandlerManager,org.apache.sshd.common.signature.SignatureFactoriesHolder,org.apache.sshd.common.signature.SignatureFactoriesManager,org.apache.sshd.common.util.net.ConnectionEndpointsIndicator
public class JGitClientSession
extends org.apache.sshd.client.session.ClientSessionImpl
A
ClientSession that can
be associated with the HostConfigEntry the session was created for.
The JGitSshClient creates such sessions and sets this association.
Also provides for associating a JGit CredentialsProvider with a
session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnAttributeRepositorythat chains together two other attribute sources in a hierarchy.static classAJGitClientSession.ChainingAttributesrepository that doubles as aPropertyResolver.Nested classes/interfaces inherited from class org.apache.sshd.common.session.helpers.AbstractSession
org.apache.sshd.common.session.helpers.AbstractSession.MessageCodingSettingsNested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable.StateNested classes/interfaces inherited from interface org.apache.sshd.common.AttributeRepository
org.apache.sshd.common.AttributeRepository.AttributeKey<T extends Object>Nested classes/interfaces inherited from interface org.apache.sshd.client.session.ClientSession
org.apache.sshd.client.session.ClientSession.ClientSessionEventNested classes/interfaces inherited from interface org.apache.sshd.common.session.SessionHeartbeatController
org.apache.sshd.common.session.SessionHeartbeatController.HeartbeatType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CredentialsProviderprivate static final intDefault setting for the maximum number of bytes to read in the initial protocol version exchange.private org.apache.sshd.client.config.hosts.HostConfigEntryprivate static final org.apache.sshd.common.AttributeRepository.AttributeKey<Boolean>private StatefulProxyConnectorFields inherited from class org.apache.sshd.client.session.AbstractClientSession
sendImmediateClientIdentification, sendImmediateKexInitFields inherited from class org.apache.sshd.common.session.helpers.AbstractSession
channelListenerProxy, channelListeners, clientProposal, clientVersion, currentService, decodeLock, decoderBuffer, decoderLength, decoderState, encodeLock, firstKexPacketFollows, globalRequestSeqo, ignorePacketDataLength, ignorePacketsCount, ignorePacketsFrequency, ignorePacketsVariance, inBlocksCount, inBytesCount, inCipher, inCipherSize, inCompression, inMac, inMacResult, inMacSize, inPacketsCount, inSettings, kex, kexFutureHolder, kexInitializedFuture, kexLock, kexState, lastKeyTimeValue, maxRekeyBlocks, maxRekeyBytes, maxRekeyInterval, maxRekyPackets, negotiationResult, outBlocksCount, outBytesCount, outCipher, outCipherSize, outCompression, outMac, outMacSize, outPacketsCount, outSettings, pendingGlobalRequest, pendingPackets, random, requestLock, seqi, seqo, serverProposal, serverVersion, SESSION, sessionId, sessionListenerProxy, sessionListeners, tunnelListenerProxy, tunnelListeners, uncompressBuffer, unmodClientProposal, unmodNegotiationResult, unmodServerProposalFields inherited from class org.apache.sshd.common.session.helpers.SessionHelper
authStart, idleStart, sessionLockFields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, stateFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolver
NONEFields inherited from interface org.apache.sshd.client.session.ClientSession
REMOTE_COMMAND_WAIT_EVENTSFields inherited from interface org.apache.sshd.common.PropertyResolver
EMPTYFields inherited from interface org.apache.sshd.common.session.SessionContext
DEFAULT_SSH_VERSION_PREFIX, FALLBACK_SSH_VERSION_PREFIX, MAX_VERSION_LINE_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionJGitClientSession(org.apache.sshd.client.ClientFactoryManager manager, org.apache.sshd.common.io.IoSession session) -
Method Summary
Modifier and TypeMethodDescriptiondoReadIdentification(org.apache.sshd.common.util.buffer.Buffer buffer, boolean server) Reads the RFC 4253, section 4.2 protocol version identification.private static StringfilteredList(Set<String> known, String key, String values) <T> TgetAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) Retrieves theCredentialsProviderset for this session.org.apache.sshd.client.config.hosts.HostConfigEntryRetrieves theHostConfigEntrythis session was created for.org.apache.sshd.common.PropertyResolvervoidmessageReceived(org.apache.sshd.common.util.Readable buffer) As long as we're still setting up the proxy connection, diverts messages to theStatefulProxyConnector.modifyAlgorithmList(List<String> defaultList, Set<String> allAvailable, String fromConfig, String overrideKey) Modifies a given algorithm list according to a list from the ssh config, including add ('+'), remove ('-') and reordering ('^') operators.private voidremoveFromList(Set<String> current, String key, String patterns) protected StringresolveAvailableSignaturesProposal(org.apache.sshd.common.FactoryManager manager) protected StringresolveSessionKexProposal(String hostKeyTypes) protected org.apache.sshd.common.io.IoWriteFuturesendIdentification(String ident, List<String> extraLines) protected byte[]voidsetCredentialsProvider(CredentialsProvider provider) Sets theCredentialsProviderfor this session.voidsetHostConfigEntry(org.apache.sshd.client.config.hosts.HostConfigEntry hostConfig) Sets theHostConfigEntrythis session was created for.private voidsetNewFactories(Collection<String> defaultFactories, Collection<String> finalFactories) voidsetProxyHandler(StatefulProxyConnector handler) Sets aStatefulProxyConnectorto handle proxy connection protocols.Methods inherited from class org.apache.sshd.client.session.ClientSessionImpl
auth, exceptionCaught, getMetadataMap, getServices, getSessionState, handleDisconnect, nextServiceName, preClose, sendInitialServiceRequest, signalAuthFailure, signalSessionEvent, switchToNextService, updateCurrentSessionState, waitForMethods inherited from class org.apache.sshd.client.session.AbstractClientSession
addPasswordIdentity, addPublicKeyIdentity, checkKeys, createChannel, createChannel, createDirectTcpipChannel, createExecChannel, createShellChannel, createSubsystemChannel, getClientProxyConnector, getConnectAddress, getConnectionContext, getConnectionService, getFactoryManager, getForwarder, getHostBasedAuthenticationReporter, getKeyIdentityProvider, getPasswordAuthenticationReporter, getPasswordIdentityProvider, getPublicKeyAuthenticationReporter, getRegisteredIdentities, getServerKey, getServerKeyVerifier, getUserAuthFactories, getUserAuthService, getUserInteraction, initializeKeyExchangePhase, initializeProxyConnector, readIdentification, receiveKexInit, receiveKexInit, removePasswordIdentity, removePublicKeyIdentity, sendClientIdentification, sendKexInit, setClientProxyConnector, setConnectAddress, setHostBasedAuthenticationReporter, setKexSeed, setKeyIdentityProvider, setPasswordAuthenticationReporter, setPasswordIdentityProvider, setPublicKeyAuthenticationReporter, setServerKey, setServerKeyVerifier, setUserAuthFactories, setUserInteraction, signalExtraServerVersionInfo, startDynamicPortForwarding, startLocalPortForwarding, startRemotePortForwarding, startService, stopDynamicPortForwarding, stopLocalPortForwarding, stopRemotePortForwarding, switchToNoneCipherMethods inherited from class org.apache.sshd.common.session.helpers.AbstractSession
addChannelListener, addPortForwardingEventListener, addSessionListener, aeadOutgoingBuffer, appendOutgoingMac, attachSession, calculatePadLength, checkRekey, comparePreferredKexProposalOption, createBuffer, decode, determineRekeyBlockLimit, doHandleMessage, doInvokeUnimplementedMessageHandler, doKexNegotiation, doWritePacket, encode, encryptOutgoingBuffer, enqueuePendingPacket, getChannelListenerProxy, getCipherInformation, getClientKexData, getClientKexProposals, getClientVersion, getCompressionInformation, getInnerCloseable, getKex, getKexNegotiationResult, getKexState, getMacInformation, getNegotiatedKexParameter, getPortForwardingEventListenerProxy, getServerKexData, getServerKexProposals, getServerVersion, getService, getSession, getSession, getSessionId, getSessionListenerProxy, handleFirstKexPacketFollows, handleKexExtension, handleKexInit, handleKexMessage, handleMessage, handleNewCompression, handleNewKeys, handleServiceAccept, handleServiceAccept, handleServiceRequest, handleServiceRequest, isRekeyBlocksCountExceeded, isRekeyDataSizeExceeded, isRekeyPacketCountsExceeded, isRekeyRequired, isRekeyTimeIntervalExceeded, negotiate, notImplemented, prepareBuffer, prepareNewKeys, preProcessEncodeBuffer, receiveKexInit, reExchangeKeys, refreshConfiguration, removeChannelListener, removePortForwardingEventListener, removeSessionListener, request, requestFailure, requestNewKeysExchange, requestSuccess, resolveAvailableSignaturesProposal, resolveIgnoreBufferDataLength, resolveOutputPacket, sendNewKeys, sendPendingPackets, setClientKexData, setInputEncoding, setNegotiationResult, setOutputEncoding, setServerKexData, signalRequestFailure, validateIncomingMac, validateKexState, validateTargetBuffer, writePacketMethods inherited from class org.apache.sshd.common.session.helpers.SessionHelper
attributeKeys, calculateNextIgnorePacketCount, checkAuthenticationTimeout, checkForTimeouts, checkIdleTimeout, clearAttributes, computeAttributeIfAbsent, createProposal, disconnect, doInvokeDebugMessageHandler, doInvokeIgnoreMessageHandler, getAttributesCount, getAuthTimeout, getAuthTimeoutStart, getBoundLocalPortForwards, getBoundRemotePortForward, getChannelStreamWriterResolver, getIdleTimeout, getIdleTimeoutStart, getIoSession, getLocalForwardsBindings, getProperties, getRemoteForwardsBindings, getReservedSessionMessagesHandler, getSessionDisconnectHandler, getStartedLocalPortForwards, getStartedRemotePortForwards, getTimeoutStatus, getUnknownChannelReferenceHandler, getUsername, handleDebug, handleDisconnect, handleIgnore, handleUnimplemented, invokeSessionSignaller, isAuthenticated, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPort, isServerSession, mergeProposals, removeAttribute, resetAuthTimeout, resetIdleTimeout, resizeKey, resolveChannelStreamWriterResolver, resolveIdentificationString, resolvePeerAddress, resolveReservedSessionMessagesHandler, resolveUnknownChannelReferenceHandler, sendDebugMessage, sendIgnoreMessage, sendNotImplemented, setAttribute, setAuthenticated, setChannelStreamWriterResolver, setReservedSessionMessagesHandler, setSessionDisconnectHandler, setUnknownChannelReferenceHandler, setUsername, signalDisconnect, signalDisconnect, signalExceptionCaught, signalExceptionCaught, signalNegotiationEnd, signalNegotiationEnd, signalNegotiationOptionsCreated, signalNegotiationOptionsCreated, signalNegotiationStart, signalNegotiationStart, signalPeerIdentificationReceived, signalPeerIdentificationReceived, signalReadPeerIdentificationLine, signalReadPeerIdentificationLine, signalSendIdentification, signalSendIdentification, signalSessionClosed, signalSessionClosed, signalSessionCreated, signalSessionCreated, signalSessionEstablished, signalSessionEstablished, signalSessionEvent, toString, writePacketMethods inherited from class org.apache.sshd.common.kex.AbstractKexFactoryManager
getCipherFactories, getCompressionFactories, getDelegate, getKexExtensionHandler, getKeyExchangeFactories, getMacFactories, getSignatureFactories, resolveEffectiveFactories, resolveEffectiveProvider, setCipherFactories, setCompressionFactories, setKexExtensionHandler, setKeyExchangeFactories, setMacFactories, setSignatureFactoriesMethods inherited from class org.apache.sshd.common.util.closeable.AbstractInnerCloseable
doCloseGracefully, doCloseImmediatelyMethods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, removeCloseFutureListenerMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.AttributeRepository
attributeKeys, getAttributesCountMethods inherited from interface org.apache.sshd.common.AttributeStore
clearAttributes, computeAttributeIfAbsent, removeAttribute, setAttributeMethods inherited from interface org.apache.sshd.common.channel.ChannelListenerManager
addChannelListener, getChannelListenerProxy, removeChannelListenerMethods inherited from interface org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager
getChannelStreamWriterResolver, resolveChannelStreamWriter, resolveChannelStreamWriterResolver, setChannelStreamWriterResolverMethods inherited from interface org.apache.sshd.client.ClientAuthenticationManager
setUserAuthFactoriesNamesMethods inherited from interface org.apache.sshd.client.session.ClientSession
createDynamicPortForwardingTracker, createExecChannel, createLocalPortForwardingTracker, createLocalPortForwardingTracker, createRemotePortForwardingTracker, createShellChannel, executeRemoteCommand, executeRemoteCommand, executeRemoteCommand, waitForMethods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.kex.extension.KexExtensionHandlerManager
getKexExtensionHandler, setKexExtensionHandlerMethods inherited from interface org.apache.sshd.common.kex.KexFactoryManager
getCipherFactories, getCipherFactoriesNameList, getCipherFactoriesNames, getCompressionFactories, getCompressionFactoriesNameList, getCompressionFactoriesNames, getKeyExchangeFactories, getMacFactories, getMacFactoriesNameList, getMacFactoriesNames, setCipherFactories, setCipherFactoriesNameList, setCipherFactoriesNames, setCipherFactoriesNames, setCompressionFactories, setCompressionFactoriesNameList, setCompressionFactoriesNames, setCompressionFactoriesNames, setKeyExchangeFactories, setMacFactories, setMacFactoriesNameList, setMacFactoriesNames, setMacFactoriesNamesMethods inherited from interface org.apache.sshd.common.auth.MutableUserHolder
setUsernameMethods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListenerManager
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListenerMethods inherited from interface org.apache.sshd.common.forward.PortForwardingInformationProvider
getBoundLocalPortForwards, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPortMethods inherited from interface org.apache.sshd.common.forward.PortForwardingManager
startLocalPortForwardingMethods inherited from interface org.apache.sshd.common.PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getProperties, getString, getStringProperty, isEmptyMethods inherited from interface org.apache.sshd.common.session.ReservedSessionMessagesManager
getReservedSessionMessagesHandler, setReservedSessionMessagesHandlerMethods inherited from interface org.apache.sshd.common.session.Session
createBuffer, createBuffer, disconnect, getAuthTimeout, getAuthTimeoutStart, getIdleTimeout, getIdleTimeoutStart, getIoSession, getKex, getLocalAddress, getRemoteAddress, getService, getTimeoutStatus, prepareBuffer, reExchangeKeys, request, request, request, resetAuthTimeout, resetIdleTimeout, resolveAttribute, sendDebugMessage, sendIgnoreMessage, setAuthenticated, writePacket, writePacket, writePacket, writePacketMethods inherited from interface org.apache.sshd.common.session.SessionContext
getCipherInformation, getClientKexProposals, getClientVersion, getCompressionInformation, getKexNegotiationResult, getKexState, getMacInformation, getNegotiatedKexParameter, getServerKexProposals, getServerVersion, getSessionId, isAuthenticated, isServerSessionMethods inherited from interface org.apache.sshd.common.session.SessionDisconnectHandlerManager
getSessionDisconnectHandler, setSessionDisconnectHandlerMethods inherited from interface org.apache.sshd.common.session.SessionHeartbeatController
disableSessionHeartbeat, getSessionHeartbeatInterval, getSessionHeartbeatType, setSessionHeartbeat, setSessionHeartbeatMethods inherited from interface org.apache.sshd.common.session.SessionListenerManager
addSessionListener, getSessionListenerProxy, removeSessionListenerMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesHolder
getSignatureFactories, getSignatureFactoriesNameList, getSignatureFactoriesNamesMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesManager
setSignatureFactories, setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNamesMethods inherited from interface org.apache.sshd.common.session.UnknownChannelReferenceHandlerManager
getUnknownChannelReferenceHandler, resolveUnknownChannelReferenceHandler, setUnknownChannelReferenceHandlerMethods inherited from interface org.apache.sshd.common.auth.UserAuthFactoriesManager
getUserAuthFactoriesNameList, getUserAuthFactoriesNames, setUserAuthFactoriesNameList, setUserAuthFactoriesNamesMethods inherited from interface org.apache.sshd.common.auth.UsernameHolder
getUsername
-
Field Details
-
DEFAULT_MAX_IDENTIFICATION_SIZE
private static final int DEFAULT_MAX_IDENTIFICATION_SIZEDefault setting for the maximum number of bytes to read in the initial protocol version exchange. 64kb is what OpenSSH < 8.0 read; OpenSSH 8.0 changed it to 8Mb, but that seems excessive for the purpose stated in RFC 4253. The Apache MINA sshd default inCoreModuleProperties.MAX_IDENTIFICATION_SIZEis 16kb.- See Also:
-
INITIAL_KEX_DONE
private static final org.apache.sshd.common.AttributeRepository.AttributeKey<Boolean> INITIAL_KEX_DONE -
hostConfig
private org.apache.sshd.client.config.hosts.HostConfigEntry hostConfig -
credentialsProvider
-
proxyHandler
-
-
Constructor Details
-
Method Details
-
getHostConfigEntry
public org.apache.sshd.client.config.hosts.HostConfigEntry getHostConfigEntry()Retrieves theHostConfigEntrythis session was created for.- Returns:
- the
HostConfigEntry, ornullif none set
-
setHostConfigEntry
public void setHostConfigEntry(org.apache.sshd.client.config.hosts.HostConfigEntry hostConfig) Sets theHostConfigEntrythis session was created for.- Parameters:
hostConfig- theHostConfigEntry
-
setCredentialsProvider
Sets theCredentialsProviderfor this session.- Parameters:
provider- to set
-
getCredentialsProvider
Retrieves theCredentialsProviderset for this session.- Returns:
- the provider, or
nullif none is set.
-
setProxyHandler
Sets aStatefulProxyConnectorto handle proxy connection protocols.- Parameters:
handler- to set
-
sendIdentification
protected org.apache.sshd.common.io.IoWriteFuture sendIdentification(String ident, List<String> extraLines) throws Exception - Overrides:
sendIdentificationin classorg.apache.sshd.common.session.helpers.SessionHelper- Throws:
Exception
-
sendKexInit
- Overrides:
sendKexInitin classorg.apache.sshd.common.session.helpers.AbstractSession- Throws:
Exception
-
messageReceived
As long as we're still setting up the proxy connection, diverts messages to theStatefulProxyConnector.- Overrides:
messageReceivedin classorg.apache.sshd.common.session.helpers.AbstractSession- Throws:
Exception
-
getAllAvailableSignatureAlgorithms
-
setNewFactories
private void setNewFactories(Collection<String> defaultFactories, Collection<String> finalFactories) -
resolveAvailableSignaturesProposal
- Overrides:
resolveAvailableSignaturesProposalin classorg.apache.sshd.client.session.AbstractClientSession
-
determineKexProposal
-
resolveSessionKexProposal
- Overrides:
resolveSessionKexProposalin classorg.apache.sshd.common.session.helpers.AbstractSession- Throws:
IOException
-
modifyAlgorithmList
public List<String> modifyAlgorithmList(List<String> defaultList, Set<String> allAvailable, String fromConfig, String overrideKey) Modifies a given algorithm list according to a list from the ssh config, including add ('+'), remove ('-') and reordering ('^') operators.- Parameters:
defaultList- to modifyallAvailable- all available valuesfromConfig- telling how to modify thedefaultList, must not benullor emptyoverrideKey- ssh config key; used for logging- Returns:
- the modified list or
nullifoverrideKeyis not set
-
removeFromList
-
filteredList
-
doReadIdentification
protected List<String> doReadIdentification(org.apache.sshd.common.util.buffer.Buffer buffer, boolean server) throws StreamCorruptedException Reads the RFC 4253, section 4.2 protocol version identification. The Apache MINA sshd default implementation checks for NUL bytes also in any preceding lines, whereas RFC 4253 requires such a check only for the actual identification string starting with "SSH-". Likewise, the 255 character limit exists only for the identification string, not for the preceding lines. CR-LF handling is also relaxed.- Overrides:
doReadIdentificationin classorg.apache.sshd.common.session.helpers.SessionHelper- Parameters:
buffer- to read fromserver- whether we're an SSH server (should always befalse)- Returns:
- the lines read, with the server identification line last, or
nullif no identification line was found and more bytes are needed - Throws:
StreamCorruptedException- if the identification is malformed- See Also:
-
escapeControls
-
getAttribute
public <T> T getAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) - Specified by:
getAttributein interfaceorg.apache.sshd.common.AttributeRepository- Overrides:
getAttributein classorg.apache.sshd.common.session.helpers.SessionHelper
-
getParentPropertyResolver
public org.apache.sshd.common.PropertyResolver getParentPropertyResolver()- Specified by:
getParentPropertyResolverin interfaceorg.apache.sshd.common.PropertyResolver- Overrides:
getParentPropertyResolverin classorg.apache.sshd.common.session.helpers.SessionHelper
-