Package org.apache.sshd.sftp
Class SftpModuleProperties
- java.lang.Object
-
- org.apache.sshd.sftp.SftpModuleProperties
-
public final class SftpModuleProperties extends Object
Configurable properties for sshd-sftp.- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static Property<String>ACL_SUPPORTED_MASKComma separate list ofSSH_ACL_CAP_xxxnames - where name can be without the prefix.static Property<Boolean>APPEND_END_OF_LIST_INDICATORUsed to control whether to append the end-of-list indicator for SSH_FXP_NAME responses viaSftpHelper.indicateEndOfNamesList(Buffer, int, PropertyResolver, boolean)call, as indicated by SFTP v6 - section 9.4static Property<Duration>AUTH_TIMEstatic Property<Boolean>AUTO_FOLLOW_LINKSWhether to automatically follow symbolic links when resolving pathsstatic Property<String>CLIENT_EXTENSIONSAllows controlling reports of which client extensions are supported (and reported via "support" and "support2" server extensions) as a comma-separate list of names.static Property<Duration>CONNECT_TIMEstatic Property<Integer>COPY_BUF_SIZEInternal allocate buffer size when copying data to/from the channelstatic intDEFAULT_FILE_HANDLE_ROUNDSstatic intDEFAULT_FILE_HANDLE_SIZEstatic Property<Integer>FILE_HANDLE_SIZESize in bytes of the opaque handle valuestatic Property<Integer>MAX_FILE_HANDLE_RAND_ROUNDSMax.static intMAX_FILE_HANDLE_ROUNDSstatic intMAX_FILE_HANDLE_SIZEstatic Property<Integer>MAX_OPEN_HANDLES_PER_SESSIONProperties key for the maximum of available open handles per session.static Property<Integer>MAX_READDATA_PACKET_LENGTHForce the use of a max.static Property<Integer>MAX_READDIR_DATA_SIZEMaximum amount of data allocated for listing the contents of a directory in any single invocation ofSftpSubsystem.doReadDir(Buffer, int)static Property<Integer>MAX_WRITEDATA_PACKET_LENGTHForce the use of a max.static intMIN_FILE_HANDLE_ROUNDSstatic intMIN_FILE_HANDLE_SIZEstatic intMIN_READDATA_PACKET_LENGTHstatic intMIN_WRITEDATA_PACKET_LENGTHstatic Property<Charset>NAME_DECODER_CHARSETstatic Property<Charset>NAME_DECODING_CHARSETUsed to indicate theCharset(or its name) for decoding referenced files/folders names - extracted from the client session when 1st initialized.static Property<String>NEWLINE_VALUEProperty that can be used to set the reported NL value.static Property<String>OPENSSH_EXTENSIONSComma-separated list of whichOpenSSHextensions are reported and what version is reported for each - format:name=version.static Property<Integer>POOL_CORE_SIZEIf >= 0, that many channels may be kept open in the channel pool of anSftpFileSystemeven if they are idle; by default 1.static Property<Duration>POOL_LIFE_TIMEA timeout after which idle channels in the pool of anSftpFileSystemare removed from the pool and closed; by default 10 seconds.static Property<Integer>POOL_SIZEThe maximum size of the channel pool used by anSftpFileSystem; by default 8.static Property<Integer>READ_BUFFER_SIZEstatic Property<Duration>SFTP_CHANNEL_OPEN_TIMEOUTProperty that can be used on theFactoryManagerto control the internal timeout used by the client to open a channel.static Property<Integer>SFTP_VERSIONForce the use of a given sftp versionstatic Property<Integer>WRITE_BUFFER_SIZEstatic Property<Integer>WRITE_CHUNK_SIZEProperty used to avoid large buffers whenAbstractSftpClient.write(SftpClient.Handle, long, byte[], int, int)is invoked with a large buffer size.
-
-
-
Field Detail
-
NAME_DECODING_CHARSET
public static final Property<Charset> NAME_DECODING_CHARSET
Used to indicate theCharset(or its name) for decoding referenced files/folders names - extracted from the client session when 1st initialized.
-
SFTP_CHANNEL_OPEN_TIMEOUT
public static final Property<Duration> SFTP_CHANNEL_OPEN_TIMEOUT
Property that can be used on theFactoryManagerto control the internal timeout used by the client to open a channel.
-
POOL_SIZE
public static final Property<Integer> POOL_SIZE
The maximum size of the channel pool used by anSftpFileSystem; by default 8. The value must be > zero.- See Also:
SftpFileSystem
-
POOL_LIFE_TIME
public static final Property<Duration> POOL_LIFE_TIME
A timeout after which idle channels in the pool of anSftpFileSystemare removed from the pool and closed; by default 10 seconds. If set to zero, channels in the pool will not expire and will be closed only then the file system is closed, or if the server closes them.The duration should not be shorter than 1 millisecond. If it is, 1 millisecond will be assumed.
- See Also:
SftpFileSystem
-
POOL_CORE_SIZE
public static final Property<Integer> POOL_CORE_SIZE
If >= 0, that many channels may be kept open in the channel pool of anSftpFileSystemeven if they are idle; by default 1. If >=POOL_SIZE, channels will not expire and will be closed only then the file system is closed, or if the server closes them.- See Also:
SftpFileSystem
-
WRITE_CHUNK_SIZE
public static final Property<Integer> WRITE_CHUNK_SIZE
Property used to avoid large buffers whenAbstractSftpClient.write(SftpClient.Handle, long, byte[], int, int)is invoked with a large buffer size.
-
COPY_BUF_SIZE
public static final Property<Integer> COPY_BUF_SIZE
Internal allocate buffer size when copying data to/from the channel
-
APPEND_END_OF_LIST_INDICATOR
public static final Property<Boolean> APPEND_END_OF_LIST_INDICATOR
Used to control whether to append the end-of-list indicator for SSH_FXP_NAME responses viaSftpHelper.indicateEndOfNamesList(Buffer, int, PropertyResolver, boolean)call, as indicated by SFTP v6 - section 9.4
-
AUTO_FOLLOW_LINKS
public static final Property<Boolean> AUTO_FOLLOW_LINKS
Whether to automatically follow symbolic links when resolving paths
-
CLIENT_EXTENSIONS
public static final Property<String> CLIENT_EXTENSIONS
Allows controlling reports of which client extensions are supported (and reported via "support" and "support2" server extensions) as a comma-separate list of names. Note: requires overriding theAbstractSftpSubsystemHelper.executeExtendedCommand(Buffer, int, String)command accordingly. If empty string is set then no server extensions are reported
-
OPENSSH_EXTENSIONS
public static final Property<String> OPENSSH_EXTENSIONS
Comma-separated list of whichOpenSSHextensions are reported and what version is reported for each - format:name=version. If empty value set, then no such extensions are reported. Otherwise, theAbstractSftpSubsystemHelper.DEFAULT_OPEN_SSH_EXTENSIONSare used
-
ACL_SUPPORTED_MASK
public static final Property<String> ACL_SUPPORTED_MASK
Comma separate list ofSSH_ACL_CAP_xxxnames - where name can be without the prefix. If not defined thenAbstractSftpSubsystemHelper.DEFAULT_ACL_SUPPORTED_MASKis used
-
NEWLINE_VALUE
public static final Property<String> NEWLINE_VALUE
Property that can be used to set the reported NL value. If not set, thenIoUtils.EOLis used
-
MIN_READDATA_PACKET_LENGTH
public static final int MIN_READDATA_PACKET_LENGTH
- See Also:
- Constant Field Values
-
MAX_READDATA_PACKET_LENGTH
public static final Property<Integer> MAX_READDATA_PACKET_LENGTH
Force the use of a max. packet length forAbstractSftpSubsystemHelper.doRead(Buffer, int)protection against malicious packets
-
MIN_WRITEDATA_PACKET_LENGTH
public static final int MIN_WRITEDATA_PACKET_LENGTH
- See Also:
- Constant Field Values
-
MAX_WRITEDATA_PACKET_LENGTH
public static final Property<Integer> MAX_WRITEDATA_PACKET_LENGTH
Force the use of a max. packet length forAbstractSftpSubsystemHelper.doWrite(Buffer, int)protection against malicious packets
-
MAX_OPEN_HANDLES_PER_SESSION
public static final Property<Integer> MAX_OPEN_HANDLES_PER_SESSION
Properties key for the maximum of available open handles per session. By default we impose virtually no limit and rely on the O/S.
-
MIN_FILE_HANDLE_SIZE
public static final int MIN_FILE_HANDLE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_FILE_HANDLE_SIZE
public static final int DEFAULT_FILE_HANDLE_SIZE
- See Also:
- Constant Field Values
-
MAX_FILE_HANDLE_SIZE
public static final int MAX_FILE_HANDLE_SIZE
- See Also:
- Constant Field Values
-
FILE_HANDLE_SIZE
public static final Property<Integer> FILE_HANDLE_SIZE
Size in bytes of the opaque handle value- See Also:
DEFAULT_FILE_HANDLE_SIZE
-
MIN_FILE_HANDLE_ROUNDS
public static final int MIN_FILE_HANDLE_ROUNDS
- See Also:
- Constant Field Values
-
DEFAULT_FILE_HANDLE_ROUNDS
public static final int DEFAULT_FILE_HANDLE_ROUNDS
- See Also:
- Constant Field Values
-
MAX_FILE_HANDLE_ROUNDS
public static final int MAX_FILE_HANDLE_ROUNDS
- See Also:
- Constant Field Values
-
MAX_FILE_HANDLE_RAND_ROUNDS
public static final Property<Integer> MAX_FILE_HANDLE_RAND_ROUNDS
Max. rounds to attempt to create a unique file handle - if all handles already in use after these many rounds, then an exception is thrown
-
MAX_READDIR_DATA_SIZE
public static final Property<Integer> MAX_READDIR_DATA_SIZE
Maximum amount of data allocated for listing the contents of a directory in any single invocation ofSftpSubsystem.doReadDir(Buffer, int)
-
-