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 java.io.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 SftpFileSystemInitializationContextClientSessionjava.io.IOException - If failed to connectdefault void authenticateClientSession(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session) throws java.io.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 ClientSessionjava.io.IOException - If failed to authenticatedefault SftpFileSystem createSftpFileSystem(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session, SftpVersionSelector selector) throws java.io.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 useSftpFileSystemjava.io.IOException - If failed to create the file-system