Top Description Fields Constructors Methods
org.apache.sshd.server.session

public abstract Class AbstractServerSession

extends AbstractSession
implements ServerSession
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.session.ServerSession, org.apache.sshd.server.ServerAuthenticationManager, org.apache.sshd.common.keyprovider.KeyPairProviderHolder, org.apache.sshd.common.auth.UserAuthFactoriesManager, org.apache.sshd.server.session.ServerProxyAcceptorHolder, org.apache.sshd.common.session.Session, org.apache.sshd.common.forward.PortForwardingInformationProvider, org.apache.sshd.common.FactoryManagerHolder, org.apache.sshd.common.session.UnknownChannelReferenceHandlerManager, org.apache.sshd.common.forward.PortForwardingEventListenerManager, org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager, org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolver, org.apache.sshd.common.channel.ChannelListenerManager, org.apache.sshd.common.session.SessionDisconnectHandlerManager, org.apache.sshd.common.session.ReservedSessionMessagesManager, org.apache.sshd.common.session.SessionListenerManager, org.apache.sshd.common.kex.KexFactoryManager, org.apache.sshd.common.kex.extension.KexExtensionHandlerManager, org.apache.sshd.common.signature.SignatureFactoriesManager, org.apache.sshd.common.signature.SignatureFactoriesHolder, org.apache.sshd.common.auth.MutableUserHolder, org.apache.sshd.common.auth.UsernameHolder, org.apache.sshd.common.session.SessionContext, org.apache.sshd.common.Closeable, java.nio.channels.Channel, java.io.Closeable, java.lang.AutoCloseable, org.apache.sshd.common.AttributeStore, org.apache.sshd.common.AttributeRepository, org.apache.sshd.common.session.SessionHeartbeatController, org.apache.sshd.common.PropertyResolver, org.apache.sshd.common.util.net.ConnectionEndpointsIndicator
Known Direct Subclasses
org.apache.sshd.server.session.ServerSessionImpl
Imports
java.io.IOException, java.net.SocketAddress, java.nio.charset.StandardCharsets, java.security.GeneralSecurityException, .KeyPair, java.util.Collection, .List, .Map, .Objects, java.util.stream.Collectors, org.apache.sshd.common.FactoryManager, .NamedResource, .RuntimeSshException, .Service, .ServiceFactory, .SshConstants, .SshException, org.apache.sshd.common.auth.AbstractUserAuthServiceFactory, org.apache.sshd.common.config.keys.KeyUtils, .OpenSshCertificate, org.apache.sshd.common.io.IoService, .IoSession, .IoWriteFuture, org.apache.sshd.common.kex.KexFactoryManager, .KexProposalOption, .KexState, org.apache.sshd.common.kex.extension.KexExtensionHandler, .KexExtensionHandler.AvailabilityPhase, .KexExtensionHandler.KexPhase, org.apache.sshd.common.keyprovider.HostKeyCertificateProvider, .KeyPairProvider, org.apache.sshd.common.session.ConnectionService, .SessionContext, .SessionDisconnectHandler, org.apache.sshd.common.session.helpers.AbstractSession, org.apache.sshd.common.signature.SignatureFactory, org.apache.sshd.common.util.GenericUtils, .MapEntryUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer, org.apache.sshd.core.CoreModuleProperties, org.apache.sshd.server.ServerAuthenticationManager, .ServerFactoryManager, org.apache.sshd.server.auth.UserAuthFactory, .WelcomeBannerPhase, org.apache.sshd.server.auth.gss.GSSAuthenticator, org.apache.sshd.server.auth.hostbased.HostBasedAuthenticator, org.apache.sshd.server.auth.keyboard.KeyboardInteractiveAuthenticator, org.apache.sshd.server.auth.password.PasswordAuthenticator, org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator

Provides default implementations for ServerSession related methods
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private SocketAddress
private GSSAuthenticator
private HostBasedAuthenticator
private HostKeyCertificateProvider
private KeyboardInteractiveAuthenticator
private KeyPairProvider
private PasswordAuthenticator
private ServerProxyAcceptor
private PublickeyAuthenticator
private List<UserAuthFactory>
Inherited from org.apache.sshd.common.session.helpers.AbstractSession:
channelListenerProxychannelListenersclientProposalclientVersioncurrentServicedecodeLockdecoderBufferdecoderLengthdecoderStatediscardingencodeLockfirstKexPacketFollowsignorePacketDataLengthignorePacketsCountignorePacketsFrequencyignorePacketsVarianceinBlocksCountinBytesCountinCipherinCipherSizeinCompressioninitialKexDoneinitialKexInitSequenceNumberinMacinMacResultinMacSizeinPacketsCountinSettingskexkexFutureHolderkexHandlerkexInitializedFuturekexStatelastKeyTimeValuemaxRekeyBlocksmaxRekeyBytesmaxRekeyIntervalmaxRekyPacketsnegotiationResultoutBlocksCountoutBytesCountoutCipheroutCipherSizeoutCompressionoutMacoutMacSizeoutPacketsCountoutSettingsrandomrequestLockseqiseqoserverProposalserverVersionSESSIONsessionIdsessionListenerProxysessionListenersstrictKextunnelListenerProxytunnelListenersuncompressBufferunmodClientProposalunmodNegotiationResultunmodServerProposal

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected void
checkKeys()

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.checkKeys.

Indicates the the key exchange is completed and the exchanged keys can now be verified - e.g., client can verify the server's key

public int
getActiveSessionCountForUser(String
The name of the user - ignored if null/empty
userName
)

Implements org.apache.sshd.server.session.ServerSession.getActiveSessionCountForUser.

Retrieve the current number of sessions active for a given username.

public SocketAddress
protected ConnectionService
public ServerFactoryManager
public GSSAuthenticator
getGSSAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getGSSAuthenticator.

Retrieve the GSSAuthenticator to be used by the SSH server.

public HostBasedAuthenticator
getHostBasedAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getHostBasedAuthenticator.

Retrieve the HostBasedAuthenticator to be used by the SSH server.

public KeyPair
public HostKeyCertificateProvider
public long

Returns:

The underlying IoSession id.
getId
()

public KeyboardInteractiveAuthenticator
getKeyboardInteractiveAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getKeyboardInteractiveAuthenticator.

Retrieve the KeyboardInteractiveAuthenticator to be used by the SSH server.

public KeyPairProvider
getKeyPairProvider()

Implements org.apache.sshd.common.keyprovider.KeyPairProviderHolder.getKeyPairProvider.

Retrieve the KeyPairProvider that will be used to find the host key to use on the server side or the user key on the client side.

public PasswordAuthenticator
getPasswordAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getPasswordAuthenticator.

Retrieve the PasswordAuthenticator to be used by the SSH server.

public PublickeyAuthenticator
getPublickeyAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getPublickeyAuthenticator.

Retrieve the PublickeyAuthenticator to be used by SSH server.

public ServerProxyAcceptor
public List<UserAuthFactory>
getUserAuthFactories()

Implements org.apache.sshd.common.auth.UserAuthFactoriesManager.getUserAuthFactories.

Retrieve the list of named factories for UserAuth objects.

protected void
protected boolean
protected boolean
readIdentification(Buffer
The Buffer containing the remote identification
buffer
)

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.readIdentification.

Read the other side identification.

protected void
protected String
resolveAvailableSignaturesProposal(FactoryManager proposedManager)

Implements abstract org.apache.sshd.common.session.helpers.SessionHelper.resolveAvailableSignaturesProposal.

Computes the list of available host key signature algorithms supported.

protected String

Returns:

The resolved proposal - null by default
resolveEmptySignaturesProposal
(Iterable<String>
The supported key types - may be null/empty
supported
,
Iterable<String>
The available signature types - may be null/empty
provided
)

Called by resolveAvailableSignaturesProposal(FactoryManager) if none of the provided keys is supported - last chance for the derived implementation to do something

protected byte[]
sendKexInit(Map<KexProposalOption, String>
our proposal for key exchange negotiation
proposal
)

Overrides org.apache.sshd.common.session.helpers.AbstractSession.sendKexInit.

Send the key exchange initialization packet.

protected IoWriteFuture

Returns:

An IoWriteFuture that can be used to be notified of identification data being written successfully or failing
sendServerIdentification
(List<String>
Extra header lines to be prepended to the actual identification string - ignored if null/empty
headerLines
)

Sends the server identification + any extra header lines

public void
public void
public void
public void
protected void
setKexSeed(byte...
The result of the KEXINIT handshake - required for correct session key establishment
seed
)

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.setKexSeed.

public void
public void
public void
public void
public void
public void
public IoWriteFuture
signalAuthenticationSuccess(String
The authenticated username
username
,
String
The service to start
authService
,
Buffer
Any extra data received to use to start the service
buffer
)

Implements org.apache.sshd.server.session.ServerSession.signalAuthenticationSuccess.

  • Marks the session as authenticated.
  • Starts the specified service.
  • Sends the SSH_MSG_USERAUTH_SUCCESS message.
public void
startService(String
Service name
name
,
Buffer
Extra information provided when the service start request was received
buffer
)

Implements org.apache.sshd.common.session.Session.startService.

Inherited from org.apache.sshd.common.session.helpers.AbstractSession:
addChannelListeneraddPortForwardingEventListeneraddSessionListeneraeadOutgoingBufferappendOutgoingMacattachSessioncalculatePadLengthcheckRekeycomparePreferredKexProposalOptioncreateBufferdecodedetermineRekeyBlockLimitdoHandleMessagedoInvokeUnimplementedMessageHandlerdoKexNegotiationdoStrictKexProposaldoWritePacketencodeencryptOutgoingBufferfailStrictKexgetChannelListenerProxygetCipherInformationgetClientKexDatagetClientKexProposalsgetClientVersiongetCompressionInformationgetInnerCloseablegetKexgetKexNegotiationResultgetKexStategetMacInformationgetNegotiatedKexParametergetPortForwardingEventListenerProxygetServerKexDatagetServerKexProposalsgetServerVersiongetServicegetServicesgetSessiongetSessiongetSessionIdgetSessionListenerProxyhandleFirstKexPacketFollowshandleKexExtensionhandleKexInithandleKexMessagehandleMessagehandleNewCompressionhandleNewKeyshandleServiceAccepthandleServiceRequestinitializeCurrentServiceinitializeKeyExchangeMessageHandlerisRekeyBlocksCountExceededisRekeyDataSizeExceededisRekeyPacketCountsExceededisRekeyRequiredisRekeyTimeIntervalExceededmessageReceivednegotiatenotImplementedperformKexNegotiationpreCloseprepareBufferprepareNewKeyspreProcessEncodeBufferreceiveKexInitreceiveKexInitreExchangeKeysrefreshConfigurationremoveChannelListenerremovePortForwardingEventListenerremoveSessionListenerremoveValuerequestrequestrequestFailurerequestNewKeysExchangerequestSuccessresolveIgnoreBufferDataLengthresolveOutputPacketresolveSessionKexProposalsendKexInitsendNewKeyssetClientKexDatasetInputEncodingsetNegotiationResultsetOutputEncodingsetServerKexDatavalidateIncomingMacvalidateKexStatevalidateServiceKexStatevalidateTargetBufferwritePacketwritePacket

Field Detail

clientAddressback to summary
private SocketAddress clientAddress
gssAuthenticatorback to summary
private GSSAuthenticator gssAuthenticator
hostBasedAuthenticatorback to summary
private HostBasedAuthenticator hostBasedAuthenticator
hostKeyCertificateProviderback to summary
private HostKeyCertificateProvider hostKeyCertificateProvider
interactiveAuthenticatorback to summary
private KeyboardInteractiveAuthenticator interactiveAuthenticator
keyPairProviderback to summary
private KeyPairProvider keyPairProvider
passwordAuthenticatorback to summary
private PasswordAuthenticator passwordAuthenticator
proxyAcceptorback to summary
private ServerProxyAcceptor proxyAcceptor
publickeyAuthenticatorback to summary
private PublickeyAuthenticator publickeyAuthenticator
userAuthFactoriesback to summary
private List<UserAuthFactory> userAuthFactories

Constructor Detail

AbstractServerSessionback to summary
protected AbstractServerSession(ServerFactoryManager factoryManager, IoSession ioSession)

Method Detail

checkKeysback to summary
protected void checkKeys()

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.checkKeys.

Doc from org.apache.sshd.common.session.helpers.AbstractSession.checkKeys.

Indicates the the key exchange is completed and the exchanged keys can now be verified - e.g., client can verify the server's key

Annotations
@Override
getActiveSessionCountForUserback to summary
public int getActiveSessionCountForUser(String userName)

Implements org.apache.sshd.server.session.ServerSession.getActiveSessionCountForUser.

Doc from org.apache.sshd.server.session.ServerSession.getActiveSessionCountForUser.

Retrieve the current number of sessions active for a given username.

Parameters
userName:String

The name of the user - ignored if null/empty

Returns:int

The current number of live SshSession objects associated with the user

Annotations
@Override
getClientAddressback to summary
public SocketAddress getClientAddress()

Implements org.apache.sshd.server.session.ServerSession.getClientAddress.

Returns:SocketAddress

Doc from org.apache.sshd.server.session.ServerSession.getClientAddress.

The SocketAddress of the remote client. If no proxy wrapping was used then this is the same as the IoSession#getRemoteAddress(). Otherwise, it indicates the real client's address that was somehow transmitted via the proxy meta-data

Annotations
@Override
getConnectionServiceback to summary
protected ConnectionService getConnectionService()

Implements abstract org.apache.sshd.common.session.helpers.SessionHelper.getConnectionService.

Annotations
@Override
getFactoryManagerback to summary
public ServerFactoryManager getFactoryManager()

Overrides org.apache.sshd.common.session.helpers.SessionHelper.getFactoryManager.

Implements org.apache.sshd.server.session.ServerSession.getFactoryManager, org.apache.sshd.common.FactoryManagerHolder.getFactoryManager.

Returns:ServerFactoryManager

Doc from org.apache.sshd.server.session.ServerSession.getFactoryManager.

The ServerFactoryManager for this session

Annotations
@Override
getGSSAuthenticatorback to summary
public GSSAuthenticator getGSSAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getGSSAuthenticator.

Doc from org.apache.sshd.server.ServerAuthenticationManager.getGSSAuthenticator.

Retrieve the GSSAuthenticator to be used by the SSH server. If no authenticator has been configured (i.e. this method returns null), then client authentication requests based on gssapi will be rejected.

Returns:GSSAuthenticator

the GSSAuthenticator or null

Annotations
@Override
getHostBasedAuthenticatorback to summary
public HostBasedAuthenticator getHostBasedAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getHostBasedAuthenticator.

Doc from org.apache.sshd.server.ServerAuthenticationManager.getHostBasedAuthenticator.

Retrieve the HostBasedAuthenticator to be used by the SSH server. If no authenticator has been configured (i.e. this method returns null), then client authentication requests based on this method will be rejected.

Returns:HostBasedAuthenticator

the HostBasedAuthenticator or null

Annotations
@Override
getHostKeyback to summary
public KeyPair getHostKey()

Implements org.apache.sshd.server.session.ServerSession.getHostKey.

Returns:KeyPair

Doc from org.apache.sshd.server.session.ServerSession.getHostKey.

The KeyPair representing the current session's used keys on KEX - null if not negotiated yet

Annotations
@Override
getHostKeyCertificateProviderback to summary
public HostKeyCertificateProvider getHostKeyCertificateProvider()

Implements org.apache.sshd.server.ServerAuthenticationManager.getHostKeyCertificateProvider.

Returns:HostKeyCertificateProvider

Doc from org.apache.sshd.server.ServerAuthenticationManager.getHostKeyCertificateProvider.

a HostKeyCertificateProvider if available, null as default

Annotations
@Override
getIdback to summary
public long getId()
Returns:long

The underlying IoSession id.

getKeyboardInteractiveAuthenticatorback to summary
public KeyboardInteractiveAuthenticator getKeyboardInteractiveAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getKeyboardInteractiveAuthenticator.

Doc from org.apache.sshd.server.ServerAuthenticationManager.getKeyboardInteractiveAuthenticator.

Retrieve the KeyboardInteractiveAuthenticator to be used by the SSH server. If no authenticator has been configured (i.e. this method returns null), then client authentication requests based on this method will be rejected.

Returns:KeyboardInteractiveAuthenticator

The KeyboardInteractiveAuthenticator or null

Annotations
@Override
getKeyPairProviderback to summary
public KeyPairProvider getKeyPairProvider()

Implements org.apache.sshd.common.keyprovider.KeyPairProviderHolder.getKeyPairProvider.

Doc from org.apache.sshd.common.keyprovider.KeyPairProviderHolder.getKeyPairProvider.

Retrieve the KeyPairProvider that will be used to find the host key to use on the server side or the user key on the client side.

Returns:KeyPairProvider

the KeyPairProvider, never null

Annotations
@Override
getPasswordAuthenticatorback to summary
public PasswordAuthenticator getPasswordAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getPasswordAuthenticator.

Doc from org.apache.sshd.server.ServerAuthenticationManager.getPasswordAuthenticator.

Retrieve the PasswordAuthenticator to be used by the SSH server. If no authenticator has been configured (i.e. this method returns null), then client authentication requests based on passwords will be rejected.

Returns:PasswordAuthenticator

the PasswordAuthenticator or null

Annotations
@Override
getPublickeyAuthenticatorback to summary
public PublickeyAuthenticator getPublickeyAuthenticator()

Implements org.apache.sshd.server.ServerAuthenticationManager.getPublickeyAuthenticator.

Doc from org.apache.sshd.server.ServerAuthenticationManager.getPublickeyAuthenticator.

Retrieve the PublickeyAuthenticator to be used by SSH server. If no authenticator has been configured (i.e. this method returns null), then client authentication requests based on keys will be rejected.

Returns:PublickeyAuthenticator

the PublickeyAuthenticator or null

Annotations
@Override
getServerProxyAcceptorback to summary
public ServerProxyAcceptor getServerProxyAcceptor()

Implements org.apache.sshd.server.session.ServerProxyAcceptorHolder.getServerProxyAcceptor.

Annotations
@Override
getUserAuthFactoriesback to summary
public List<UserAuthFactory> getUserAuthFactories()

Implements org.apache.sshd.common.auth.UserAuthFactoriesManager.getUserAuthFactories.

Doc from org.apache.sshd.common.auth.UserAuthFactoriesManager.getUserAuthFactories.

Retrieve the list of named factories for UserAuth objects.

Returns:List<UserAuthFactory>

a list of named UserAuth factories, never null/empty

Annotations
@Override
handleServiceAcceptback to summary
protected void handleServiceAccept(String serviceName, Buffer buffer) throws Exception

Overrides org.apache.sshd.common.session.helpers.AbstractSession.handleServiceAccept.

Annotations
@Override
handleServiceRequestback to summary
protected boolean handleServiceRequest(String serviceName, Buffer buffer) throws Exception

Overrides org.apache.sshd.common.session.helpers.AbstractSession.handleServiceRequest.

Annotations
@Override
readIdentificationback to summary
protected boolean readIdentification(Buffer buffer) throws Exception

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.readIdentification.

Doc from org.apache.sshd.common.session.helpers.AbstractSession.readIdentification.

Read the other side identification. This method is specific to the client or server side, but both should call doReadIdentification(Buffer, boolean) and store the result in the needed property.

Parameters
buffer:Buffer

The Buffer containing the remote identification

Returns:boolean

true if the identification has been fully read or false if more data is needed

Annotations
@Override
Exceptions
Exception:
if an error occurs such as a bad protocol version or unsuccessful KEX was involved
receiveKexInitback to summary
protected void receiveKexInit(Map<KexProposalOption, String> proposal, byte[] seed) throws IOException

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.receiveKexInit.

Annotations
@Override
resolveAvailableSignaturesProposalback to summary
protected String resolveAvailableSignaturesProposal(FactoryManager proposedManager) throws IOException, GeneralSecurityException

Implements abstract org.apache.sshd.common.session.helpers.SessionHelper.resolveAvailableSignaturesProposal.

Doc from org.apache.sshd.common.session.helpers.SessionHelper.resolveAvailableSignaturesProposal.

Computes the list of available host key signature algorithms supported.

Parameters
proposedManager:FactoryManager

The FactoryManager

Returns:String

A comma-separated list of all the signature protocols to be included in the proposal - null/empty if no proposal

Annotations
@Override
Exceptions
IOException:
If failed to read/parse the keys data
GeneralSecurityException:
If failed to generate the keys
resolveEmptySignaturesProposalback to summary
protected String resolveEmptySignaturesProposal(Iterable<String> supported, Iterable<String> provided)

Called by resolveAvailableSignaturesProposal(FactoryManager) if none of the provided keys is supported - last chance for the derived implementation to do something

Parameters
supported:Iterable<String>

The supported key types - may be null/empty

provided:Iterable<String>

The available signature types - may be null/empty

Returns:String

The resolved proposal - null by default

sendKexInitback to summary
protected byte[] sendKexInit(Map<KexProposalOption, String> proposal) throws Exception

Overrides org.apache.sshd.common.session.helpers.AbstractSession.sendKexInit.

Doc from org.apache.sshd.common.session.helpers.AbstractSession.sendKexInit.

Send the key exchange initialization packet. This packet contains random data along with our proposal.

Parameters
proposal:Map<KexProposalOption, String>

our proposal for key exchange negotiation

Returns:byte[]

the sent packet data which must be kept for later use when deriving the session keys

Annotations
@Override
Exceptions
Exception:
if an error occurred sending the packet
sendServerIdentificationback to summary
protected IoWriteFuture sendServerIdentification(List<String> headerLines) throws Exception

Sends the server identification + any extra header lines

Parameters
headerLines:List<String>

Extra header lines to be prepended to the actual identification string - ignored if null/empty

Returns:IoWriteFuture

An IoWriteFuture that can be used to be notified of identification data being written successfully or failing

Exceptions
Exception:
If failed to send identification
See Also
RFC 4253 - section 4.2
setClientAddressback to summary
public void setClientAddress(SocketAddress clientAddress)
setGSSAuthenticatorback to summary
public void setGSSAuthenticator(GSSAuthenticator gssAuthenticator)

Implements org.apache.sshd.server.ServerAuthenticationManager.setGSSAuthenticator.

Annotations
@Override
setHostBasedAuthenticatorback to summary
public void setHostBasedAuthenticator(HostBasedAuthenticator hostBasedAuthenticator)

Implements org.apache.sshd.server.ServerAuthenticationManager.setHostBasedAuthenticator.

Annotations
@Override
setHostKeyCertificateProviderback to summary
public void setHostKeyCertificateProvider(HostKeyCertificateProvider hostKeyCertificateProvider)

Implements org.apache.sshd.server.ServerAuthenticationManager.setHostKeyCertificateProvider.

Annotations
@Override
setKexSeedback to summary
protected void setKexSeed(byte... seed)

Implements abstract org.apache.sshd.common.session.helpers.AbstractSession.setKexSeed.

Parameters
seed:byte[]

Doc from org.apache.sshd.common.session.helpers.AbstractSession.setKexSeed.

The result of the KEXINIT handshake - required for correct session key establishment

Annotations
@Override
setKeyboardInteractiveAuthenticatorback to summary
public void setKeyboardInteractiveAuthenticator(KeyboardInteractiveAuthenticator interactiveAuthenticator)

Implements org.apache.sshd.server.ServerAuthenticationManager.setKeyboardInteractiveAuthenticator.

Annotations
@Override
setKeyPairProviderback to summary
public void setKeyPairProvider(KeyPairProvider keyPairProvider)

Implements org.apache.sshd.common.keyprovider.KeyPairProviderHolder.setKeyPairProvider.

Annotations
@Override
setPasswordAuthenticatorback to summary
public void setPasswordAuthenticator(PasswordAuthenticator passwordAuthenticator)

Implements org.apache.sshd.server.ServerAuthenticationManager.setPasswordAuthenticator.

Annotations
@Override
setPublickeyAuthenticatorback to summary
public void setPublickeyAuthenticator(PublickeyAuthenticator publickeyAuthenticator)

Implements org.apache.sshd.server.ServerAuthenticationManager.setPublickeyAuthenticator.

Annotations
@Override
setServerProxyAcceptorback to summary
public void setServerProxyAcceptor(ServerProxyAcceptor proxyAcceptor)

Implements org.apache.sshd.server.session.ServerProxyAcceptorHolder.setServerProxyAcceptor.

Annotations
@Override
setUserAuthFactoriesback to summary
public void setUserAuthFactories(List<UserAuthFactory> userAuthFactories)

Implements org.apache.sshd.common.auth.UserAuthFactoriesManager.setUserAuthFactories.

Annotations
@Override
signalAuthenticationSuccessback to summary
public IoWriteFuture signalAuthenticationSuccess(String username, String authService, Buffer buffer) throws Exception

Implements org.apache.sshd.server.session.ServerSession.signalAuthenticationSuccess.

Doc from org.apache.sshd.server.session.ServerSession.signalAuthenticationSuccess.

  • Marks the session as authenticated.
  • Starts the specified service.
  • Sends the SSH_MSG_USERAUTH_SUCCESS message.
Parameters
username:String

The authenticated username

authService:String

The service to start

buffer:Buffer

Any extra data received to use to start the service

Returns:IoWriteFuture

An IoWriteFuture that can be used to wait for the SSH_MSG_USERAUTH_SUCCESS message send result

Annotations
@Override
Exceptions
Exception:
if cannot handle the request
startServiceback to summary
public void startService(String name, Buffer buffer) throws Exception

Implements org.apache.sshd.common.session.Session.startService.

Parameters
name:String

Doc from org.apache.sshd.common.session.Session.startService.

Service name

buffer:Buffer

Doc from org.apache.sshd.common.session.Session.startService.

Extra information provided when the service start request was received

Annotations
@Override
Exceptions
Exception:

Doc from org.apache.sshd.common.session.Session.startService.

If failed to start it