public interface SftpFileSystemClientSessionInitializer
SftpFileSystem via a SftpFileSystemProvider.| Modifier and Type | Field and Description |
|---|---|
static SftpFileSystemClientSessionInitializer |
DEFAULT |
static final SftpFileSystemClientSessionInitializer DEFAULT
default ClientSession createClientSession(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context) throws IOException
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method in order to obtain an
initial (non-authenticated) ClientSession.provider - The SftpFileSystemProvider instance requesting the sessioncontext - The initialization SftpFileSystemInitializationContextClientSessionIOException - If failed to connectdefault void authenticateClientSession(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session) throws IOException
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method in order to authenticate
the session obtained from
createClientSession(SftpFileSystemProvider, SftpFileSystemInitializationContext)provider - The SftpFileSystemProvider instance requesting the sessioncontext - The initialization SftpFileSystemInitializationContextsession - The created ClientSessionIOException - If failed to authenticate@Deprecated default SftpFileSystem createSftpFileSystem(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method in order to create the
SftpFileSystem once session has been authenticated.provider - The SftpFileSystemProvider instance requesting the sessioncontext - The initialization SftpFileSystemInitializationContextsession - The authenticated ClientSessionselector - The resolved SftpVersionSelector to useerrorDataHandler - The SftpErrorDataHandler to handle incoming data through the error stream -
if null the data is silently ignoredSftpFileSystemIOException - If failed to create the file-systemdefault SftpFileSystem createSftpFileSystem(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, org.apache.sshd.common.util.io.functors.IOFunction<Boolean,ClientSession> sessionProvider, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method in order to create the
SftpFileSystem once session has been authenticated.provider - The SftpFileSystemProvider instance requesting the sessioncontext - The initialization SftpFileSystemInitializationContextsessionProvider - A factory for authenticated ClientSessionsselector - The resolved SftpVersionSelector to useerrorDataHandler - The SftpErrorDataHandler to handle incoming data through the error stream - if
null the data is silently ignoredSftpFileSystemIOException - If failed to create the file-systemCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.