java.lang.Object
org.codelibs.jcifs.smb.config.DelegatingConfiguration
- All Implemented Interfaces:
Configuration
Configuration implementation that delegates to another configuration instance.
Provides a wrapper mechanism for configuration objects with delegation pattern.
- Author:
- mbechler
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingConfiguration(Configuration delegate) Creates a delegating configuration that forwards calls to another configuration -
Method Summary
Modifier and TypeMethodDescriptionlongPropertyorg.codelibs.jcifs.smb.impl.client.attrExpirationPeriod(int, 5000)intgetBatchLimit(String cmd) Gets the batch limit for a specific SMB commandPropertyorg.codelibs.jcifs.smb.netbios.baddr(string, default255.255.255.255)intPropertyorg.codelibs.jcifs.smb.impl.maxBuffers(int, default 16)intPropertyorg.codelibs.jcifs.smb.impl.client.capabilities(int)intPropertyorg.codelibs.jcifs.smb.impl.client.connTimeout(int, default 35000)Propertyorg.codelibs.jcifs.smb.impl.client.domainPropertyorg.codelibs.jcifs.smb.impl.client.passwordPropertyorg.codelibs.jcifs.smb.impl.client.usernamelongPropertyorg.codelibs.jcifs.smb.impl.client.dfs.ttl(int, default 300)intPropertyorg.codelibs.jcifs.smb.impl.client.flags2(int)Propertyorg.codelibs.jcifs.smb.impl.client.guestPassword, defaults to empty stringPropertyorg.codelibs.jcifs.smb.impl.client.guestUsername, defaults to GUESTintLanman compatibility level Microsoft TechNet Documentation LM Compatibility Levels 0 or 1 LM and NTLM 2 NTLM only 3-5 NTLMv2 only Propertyorg.codelibs.jcifs.smb.impl.lmCompatibility(int, default 3)intPropertyorg.codelibs.jcifs.smb.impl.client.listCount(int, default 200)intPropertyorg.codelibs.jcifs.smb.impl.client.listSize(int, default 65435)Propertyorg.codelibs.jcifs.smb.netbios.lmhosts(string)Propertyorg.codelibs.jcifs.smb.impl.client.laddr(string)intPropertyorg.codelibs.jcifs.smb.impl.client.lport(int)Gets the local timezone for time-related operationsPropertyorg.codelibs.jcifs.smb.impl.client.logonSharebyte[]Machine identifier ClientGuid, ... are derived from this value.intGets the maximum buffer size for IO operationsMaximum protocol version Propertyorg.codelibs.jcifs.smb.impl.client.maxVersion(string, default SMB210)intPropertyorg.codelibs.jcifs.smb.impl.client.maxMpxCount(int, default 10)intPropertyorg.codelibs.jcifs.smb.impl.client.maxRequestRetries(int, default 2)Minimum protocol version Propertyorg.codelibs.jcifs.smb.impl.client.minVersion(string, default SMB1)Propertyorg.codelibs.jcifs.smb.impl.client.nativeLanMan(string, defaultjCIFS)Propertyorg.codelibs.jcifs.smb.impl.client.nativeOs(string, defaultos.name)intPropertyorg.codelibs.jcifs.smb.netbios.cachePolicyin minutes (int, default 600)Propertyorg.codelibs.jcifs.smb.netbios.hostname(string)Propertyorg.codelibs.jcifs.smb.netbios.laddr(string)intPropertyorg.codelibs.jcifs.smb.netbios.lport(int)intPropertyorg.codelibs.jcifs.smb.netbios.rcv_buf_size(int, default 576)intPropertyorg.codelibs.jcifs.smb.netbios.retryCount(int, default 2)intPropertyorg.codelibs.jcifs.smb.netbios.retryTimeout(int, default 3000)Propertyorg.codelibs.jcifs.smb.netbios.scope(string)intPropertyorg.codelibs.jcifs.smb.netbios.snd_buf_size(int, default 576)intPropertyorg.codelibs.jcifs.smb.netbios.soTimeout(int, default 5000)intPropertyorg.codelibs.jcifs.smb.impl.client.notify_buf_size(int, default 1024)Propertyorg.codelibs.jcifs.smb.encoding(string, defaultCp850)intgetPid()Gets the process ID to use in SMB messagesGets the secure random number generator for cryptographic operationsintPropertyorg.codelibs.jcifs.smb.impl.client.rcv_buf_size(int, default 65535)intDeprecated.use getReceiveBufferSize insteadPropertyorg.codelibs.jcifs.smb.resolveOrder(string, defaultLMHOSTS,DNS,WINS,BCAST)intPropertyorg.codelibs.jcifs.smb.impl.client.responseTimeout(int, default 30000)intPropertyorg.codelibs.jcifs.smb.impl.client.snd_buf_size(int, default 65535)intPropertyorg.codelibs.jcifs.smb.impl.client.ssnLimit(int, 250)intPropertyorg.codelibs.jcifs.smb.impl.client.sessionTimeout(int, default 35000)intPropertyorg.codelibs.jcifs.smb.impl.client.soTimeout(int, default 35000)intPropertyorg.codelibs.jcifs.smb.impl.client.transaction_buf_size(int, default 65535)intGets the virtual circuit number for SMB connectionsPropertyorg.codelibs.jcifs.smb.netbios.wins(string, comma separated)booleanisAllowCompound(String command) Checks if compound requests are allowed for the specified commandbooleanPropertyorg.codelibs.jcifs.smb.impl.client.allowGuestFallback, defaults to falsebooleanPropertyorg.codelibs.jcifs.smb.impl.allowNTLMFallback(boolean, default true)booleanEnable hack to make kerberos auth work with DFS sending short names This works by appending the domain name to the netbios short name and will fail horribly if this mapping is not correct for your domain.booleanPropertyorg.codelibs.jcifs.smb.impl.client.dfs.disabled(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.dfs.strictView(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.disablePlainTextPasswords(boolean, default true)booleanPropertyorg.codelibs.jcifs.smb.impl.client.disableSpnegoIntegrity(boolean, false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.encryptionEnabled(boolean, default false) This is an experimental option allowing to indicate support during protocol negotiation, SMB encryption is not implemented yet.booleanPropertyorg.codelibs.jcifs.smb.impl.client.enforceSpnegoIntegrity(boolean, false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.forceExtendedSecurity(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.forceUnicode(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.ignoreCopyToException(boolean, false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.ipcSigningEnforced(boolean, default true)booleanEnable port 139 failover Propertyorg.codelibs.jcifs.smb.impl.client.port139.enabled(boolean, default false)booleanWhether to preserve share name case When true, preserve the original case of share names instead of converting to uppercase.booleanEnforce secure negotiation Propertyorg.codelibs.jcifs.smb.impl.client.requireSecureNegotiate(boolean, default true) This does not provide any actual downgrade protection if SMB1 is allowed.booleanPropertyorg.codelibs.jcifs.smb.impl.client.SendNTLMTargetName(boolean, true)booleanPropertyorg.codelibs.jcifs.smb.impl.client.signingPreferred(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.signingEnforced(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.strictResourceLifecycle(bool, default false) If enabled, SmbFile instances starting with their first use will hold a reference to their tree.booleanThis is solely intended for debuggingbooleanPropertyorg.codelibs.jcifs.smb.impl.client.useBatching(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.useRawNTLM(boolean, default false)booleanUse SMB2 non-backward compatible negotiation style Propertyorg.codelibs.jcifs.smb.impl.client.useSMB2Negotiation(boolean, default false)booleanPropertyorg.codelibs.jcifs.smb.impl.client.useUnicode(boolean, default true)
-
Constructor Details
-
DelegatingConfiguration
Creates a delegating configuration that forwards calls to another configuration- Parameters:
delegate- delegate to pass all non-overridden method calls to
-
-
Method Details
-
getRandom
Gets the secure random number generator for cryptographic operations- Specified by:
getRandomin interfaceConfiguration- Returns:
- random source to use
- See Also:
-
getMinimumVersion
Minimum protocol version Propertyorg.codelibs.jcifs.smb.impl.client.minVersion(string, default SMB1)- Specified by:
getMinimumVersionin interfaceConfiguration- Returns:
- minimum protocol version to use/allow
- See Also:
-
getMaximumVersion
Maximum protocol version Propertyorg.codelibs.jcifs.smb.impl.client.maxVersion(string, default SMB210)- Specified by:
getMaximumVersionin interfaceConfiguration- Returns:
- maximum protocol version to use/allow
- See Also:
-
isUseSMB2OnlyNegotiation
public boolean isUseSMB2OnlyNegotiation()Use SMB2 non-backward compatible negotiation style Propertyorg.codelibs.jcifs.smb.impl.client.useSMB2Negotiation(boolean, default false)- Specified by:
isUseSMB2OnlyNegotiationin interfaceConfiguration- Returns:
- whether to use non-backward compatible protocol negotiation
- See Also:
-
isRequireSecureNegotiate
public boolean isRequireSecureNegotiate()Enforce secure negotiation Propertyorg.codelibs.jcifs.smb.impl.client.requireSecureNegotiate(boolean, default true) This does not provide any actual downgrade protection if SMB1 is allowed. It will also break connections with SMB2 servers that do not properly sign error responses.- Specified by:
isRequireSecureNegotiatein interfaceConfiguration- Returns:
- whether to enforce the use of secure negotiation.
- See Also:
-
isSendNTLMTargetName
public boolean isSendNTLMTargetName()Propertyorg.codelibs.jcifs.smb.impl.client.SendNTLMTargetName(boolean, true)- Specified by:
isSendNTLMTargetNamein interfaceConfiguration- Returns:
- whether to send an AvTargetName with the NTLM exchange
- See Also:
-
isPort139FailoverEnabled
public boolean isPort139FailoverEnabled()Enable port 139 failover Propertyorg.codelibs.jcifs.smb.impl.client.port139.enabled(boolean, default false)- Specified by:
isPort139FailoverEnabledin interfaceConfiguration- Returns:
- whether to failover to legacy transport on port 139
- See Also:
-
getDfsTtl
public long getDfsTtl()Propertyorg.codelibs.jcifs.smb.impl.client.dfs.ttl(int, default 300)- Specified by:
getDfsTtlin interfaceConfiguration- Returns:
- title to live, in seconds, for DFS cache entries
- See Also:
-
isDfsStrictView
public boolean isDfsStrictView()Propertyorg.codelibs.jcifs.smb.impl.client.dfs.strictView(boolean, default false)- Specified by:
isDfsStrictViewin interfaceConfiguration- Returns:
- whether a authentication failure during DFS resolving will throw an exception
- See Also:
-
isDfsDisabled
public boolean isDfsDisabled()Propertyorg.codelibs.jcifs.smb.impl.client.dfs.disabled(boolean, default false)- Specified by:
isDfsDisabledin interfaceConfiguration- Returns:
- whether DFS lookup is disabled
- See Also:
-
isDfsConvertToFQDN
public boolean isDfsConvertToFQDN()Enable hack to make kerberos auth work with DFS sending short names This works by appending the domain name to the netbios short name and will fail horribly if this mapping is not correct for your domain. Propertyorg.codelibs.jcifs.smb.impl.client.dfs.convertToFQDN(boolean, default false)- Specified by:
isDfsConvertToFQDNin interfaceConfiguration- Returns:
- whether to convert NetBIOS names returned by DFS to FQDNs
- See Also:
-
isForceUnicode
public boolean isForceUnicode()Propertyorg.codelibs.jcifs.smb.impl.client.forceUnicode(boolean, default false)- Specified by:
isForceUnicodein interfaceConfiguration- Returns:
- whether to use unicode, even if the server does not announce it
- See Also:
-
isUseUnicode
public boolean isUseUnicode()Propertyorg.codelibs.jcifs.smb.impl.client.useUnicode(boolean, default true)- Specified by:
isUseUnicodein interfaceConfiguration- Returns:
- whether to announce support for unicode
- See Also:
-
isUseBatching
public boolean isUseBatching()Propertyorg.codelibs.jcifs.smb.impl.client.useBatching(boolean, default false)- Specified by:
isUseBatchingin interfaceConfiguration- Returns:
- whether to enable support for SMB1 AndX command batching
- See Also:
-
getNativeOs
Propertyorg.codelibs.jcifs.smb.impl.client.nativeOs(string, defaultos.name)- Specified by:
getNativeOsin interfaceConfiguration- Returns:
- OS string to report
- See Also:
-
getNativeLanman
Propertyorg.codelibs.jcifs.smb.impl.client.nativeLanMan(string, defaultjCIFS)- Specified by:
getNativeLanmanin interfaceConfiguration- Returns:
- Lanman string to report
- See Also:
-
getMaximumBufferSize
public int getMaximumBufferSize()Gets the maximum buffer size for IO operations- Specified by:
getMaximumBufferSizein interfaceConfiguration- Returns:
- the maximum size of IO buffers, limits the maximum message size
- See Also:
-
getRecieveBufferSize
Deprecated.use getReceiveBufferSize insteadPropertyorg.codelibs.jcifs.smb.impl.client.rcv_buf_size(int, default 65535)- Specified by:
getRecieveBufferSizein interfaceConfiguration- Returns:
- receive buffer size, in bytes
-
getReceiveBufferSize
public int getReceiveBufferSize()Propertyorg.codelibs.jcifs.smb.impl.client.rcv_buf_size(int, default 65535)- Specified by:
getReceiveBufferSizein interfaceConfiguration- Returns:
- receive buffer size, in bytes
- See Also:
-
getSendBufferSize
public int getSendBufferSize()Propertyorg.codelibs.jcifs.smb.impl.client.snd_buf_size(int, default 65535)- Specified by:
getSendBufferSizein interfaceConfiguration- Returns:
- send buffer size, in bytes
- See Also:
-
getNotifyBufferSize
public int getNotifyBufferSize()Propertyorg.codelibs.jcifs.smb.impl.client.notify_buf_size(int, default 1024)- Specified by:
getNotifyBufferSizein interfaceConfiguration- Returns:
- the size of the requested server notify buffer
- See Also:
-
getSoTimeout
public int getSoTimeout()Propertyorg.codelibs.jcifs.smb.impl.client.soTimeout(int, default 35000)- Specified by:
getSoTimeoutin interfaceConfiguration- Returns:
- socket timeout, in milliseconds
- See Also:
-
getResponseTimeout
public int getResponseTimeout()Propertyorg.codelibs.jcifs.smb.impl.client.responseTimeout(int, default 30000)- Specified by:
getResponseTimeoutin interfaceConfiguration- Returns:
- timeout for SMB responses, in milliseconds
- See Also:
-
getConnTimeout
public int getConnTimeout()Propertyorg.codelibs.jcifs.smb.impl.client.connTimeout(int, default 35000)- Specified by:
getConnTimeoutin interfaceConfiguration- Returns:
- timeout for establishing a socket connection, in milliseconds
- See Also:
-
getSessionTimeout
public int getSessionTimeout()Propertyorg.codelibs.jcifs.smb.impl.client.sessionTimeout(int, default 35000)- Specified by:
getSessionTimeoutin interfaceConfiguration- Returns:
- timeout for SMB sessions, in milliseconds
- See Also:
-
getLocalPort
public int getLocalPort()Propertyorg.codelibs.jcifs.smb.impl.client.lport(int)- Specified by:
getLocalPortin interfaceConfiguration- Returns:
- local port to use for outgoing connections
- See Also:
-
getLocalAddr
Propertyorg.codelibs.jcifs.smb.impl.client.laddr(string)- Specified by:
getLocalAddrin interfaceConfiguration- Returns:
- local address to use for outgoing connections
- See Also:
-
getNetbiosHostname
Propertyorg.codelibs.jcifs.smb.netbios.hostname(string)- Specified by:
getNetbiosHostnamein interfaceConfiguration- Returns:
- local NETBIOS/short name to announce
- See Also:
-
getDefaultDomain
Propertyorg.codelibs.jcifs.smb.impl.client.domain- Specified by:
getDefaultDomainin interfaceConfiguration- Returns:
- default credentials, domain name
- See Also:
-
getDefaultUsername
Propertyorg.codelibs.jcifs.smb.impl.client.username- Specified by:
getDefaultUsernamein interfaceConfiguration- Returns:
- default credentials, user name
- See Also:
-
getDefaultPassword
Propertyorg.codelibs.jcifs.smb.impl.client.password- Specified by:
getDefaultPasswordin interfaceConfiguration- Returns:
- default credentials, password
- See Also:
-
isDisablePlainTextPasswords
public boolean isDisablePlainTextPasswords()Description copied from interface:ConfigurationPropertyorg.codelibs.jcifs.smb.impl.client.disablePlainTextPasswords(boolean, default true)- Specified by:
isDisablePlainTextPasswordsin interfaceConfiguration- Returns:
- whether the usage of plaintext passwords is prohibited, defaults to false
- See Also:
-
isForceExtendedSecurity
public boolean isForceExtendedSecurity()Propertyorg.codelibs.jcifs.smb.impl.client.forceExtendedSecurity(boolean, default false)- Specified by:
isForceExtendedSecurityin interfaceConfiguration- Returns:
- whether to force extended security usage
- See Also:
-
getLanManCompatibility
public int getLanManCompatibility()Lanman compatibility level Microsoft TechNet Documentation
PropertyLM Compatibility Levels 0 or 1 LM and NTLM 2 NTLM only 3-5 NTLMv2 only org.codelibs.jcifs.smb.impl.lmCompatibility(int, default 3)- Specified by:
getLanManCompatibilityin interfaceConfiguration- Returns:
- lanman compatibility level, defaults to 3 i.e. NTLMv2 only
- See Also:
-
isAllowNTLMFallback
public boolean isAllowNTLMFallback()Propertyorg.codelibs.jcifs.smb.impl.allowNTLMFallback(boolean, default true)- Specified by:
isAllowNTLMFallbackin interfaceConfiguration- Returns:
- whether to allow fallback from kerberos to NTLM
- See Also:
-
isUseRawNTLM
public boolean isUseRawNTLM()Propertyorg.codelibs.jcifs.smb.impl.useRawNTLM(boolean, default false)- Specified by:
isUseRawNTLMin interfaceConfiguration- Returns:
- whether to use raw NTLMSSP tokens instead of SPNEGO wrapped ones
- See Also:
-
isDisableSpnegoIntegrity
public boolean isDisableSpnegoIntegrity()Propertyorg.codelibs.jcifs.smb.impl.client.disableSpnegoIntegrity(boolean, false)- Specified by:
isDisableSpnegoIntegrityin interfaceConfiguration- Returns:
- whether to disable sending/verifying SPNEGO mechanismListMIC
- See Also:
-
isEnforceSpnegoIntegrity
public boolean isEnforceSpnegoIntegrity()Propertyorg.codelibs.jcifs.smb.impl.client.enforceSpnegoIntegrity(boolean, false)- Specified by:
isEnforceSpnegoIntegrityin interfaceConfiguration- Returns:
- whether to enforce verifying SPNEGO mechanismListMIC
- See Also:
-
getResolveOrder
Propertyorg.codelibs.jcifs.smb.resolveOrder(string, defaultLMHOSTS,DNS,WINS,BCAST)- Specified by:
getResolveOrderin interfaceConfiguration- Returns:
- order and selection of resolver modules, see
ResolverType - See Also:
-
getBroadcastAddress
Propertyorg.codelibs.jcifs.smb.netbios.baddr(string, default255.255.255.255)- Specified by:
getBroadcastAddressin interfaceConfiguration- Returns:
- broadcast address to use
- See Also:
-
getWinsServers
Propertyorg.codelibs.jcifs.smb.netbios.wins(string, comma separated)- Specified by:
getWinsServersin interfaceConfiguration- Returns:
- WINS server to use
- See Also:
-
getNetbiosLocalPort
public int getNetbiosLocalPort()Propertyorg.codelibs.jcifs.smb.netbios.lport(int)- Specified by:
getNetbiosLocalPortin interfaceConfiguration- Returns:
- local bind port for nebios connections
- See Also:
-
getNetbiosLocalAddress
Propertyorg.codelibs.jcifs.smb.netbios.laddr(string)- Specified by:
getNetbiosLocalAddressin interfaceConfiguration- Returns:
- local bind address for netbios connections
- See Also:
-
getVcNumber
public int getVcNumber()Gets the virtual circuit number for SMB connections- Specified by:
getVcNumberin interfaceConfiguration- Returns:
- virtual circuit number to use
- See Also:
-
getCapabilities
public int getCapabilities()Propertyorg.codelibs.jcifs.smb.impl.client.capabilities(int)- Specified by:
getCapabilitiesin interfaceConfiguration- Returns:
- custom capabilities
- See Also:
-
getFlags2
public int getFlags2()Propertyorg.codelibs.jcifs.smb.impl.client.flags2(int)- Specified by:
getFlags2in interfaceConfiguration- Returns:
- custom flags2
- See Also:
-
getSessionLimit
public int getSessionLimit()Propertyorg.codelibs.jcifs.smb.impl.client.ssnLimit(int, 250)- Specified by:
getSessionLimitin interfaceConfiguration- Returns:
- maximum number of sessions on a single connection
- See Also:
-
getOemEncoding
Propertyorg.codelibs.jcifs.smb.encoding(string, defaultCp850)- Specified by:
getOemEncodingin interfaceConfiguration- Returns:
- OEM encoding to use
- See Also:
-
getLocalTimezone
Gets the local timezone for time-related operations- Specified by:
getLocalTimezonein interfaceConfiguration- Returns:
- local timezone
- See Also:
-
getPid
public int getPid()Gets the process ID to use in SMB messages- Specified by:
getPidin interfaceConfiguration- Returns:
- Process id to send, randomized if unset
- See Also:
-
getMaxMpxCount
public int getMaxMpxCount()Propertyorg.codelibs.jcifs.smb.impl.client.maxMpxCount(int, default 10)- Specified by:
getMaxMpxCountin interfaceConfiguration- Returns:
- maximum count of concurrent commands to announce
- See Also:
-
isSigningEnabled
public boolean isSigningEnabled()Propertyorg.codelibs.jcifs.smb.impl.client.signingPreferred(boolean, default false)- Specified by:
isSigningEnabledin interfaceConfiguration- Returns:
- whether to enable SMB signing (for everything), if available
- See Also:
-
isSigningEnforced
public boolean isSigningEnforced()Propertyorg.codelibs.jcifs.smb.impl.client.signingEnforced(boolean, default false)- Specified by:
isSigningEnforcedin interfaceConfiguration- Returns:
- whether to enforce SMB signing (for everything)
- See Also:
-
isIpcSigningEnforced
public boolean isIpcSigningEnforced()Propertyorg.codelibs.jcifs.smb.impl.client.ipcSigningEnforced(boolean, default true)- Specified by:
isIpcSigningEnforcedin interfaceConfiguration- Returns:
- whether to enforce SMB signing for IPC connections
- See Also:
-
isEncryptionEnabled
public boolean isEncryptionEnabled()Propertyorg.codelibs.jcifs.smb.impl.client.encryptionEnabled(boolean, default false) This is an experimental option allowing to indicate support during protocol negotiation, SMB encryption is not implemented yet.- Specified by:
isEncryptionEnabledin interfaceConfiguration- Returns:
- whether SMB encryption is enabled
- See Also:
-
getLmHostsFileName
Propertyorg.codelibs.jcifs.smb.netbios.lmhosts(string)- Specified by:
getLmHostsFileNamein interfaceConfiguration- Returns:
- lmhosts file to use
- See Also:
-
getNetbiosScope
Propertyorg.codelibs.jcifs.smb.netbios.scope(string)- Specified by:
getNetbiosScopein interfaceConfiguration- Returns:
- default netbios scope to set in requests
- See Also:
-
getNetbiosSoTimeout
public int getNetbiosSoTimeout()Propertyorg.codelibs.jcifs.smb.netbios.soTimeout(int, default 5000)- Specified by:
getNetbiosSoTimeoutin interfaceConfiguration- Returns:
- socket timeout for netbios connections, in milliseconds
- See Also:
-
getNetbiosSndBufSize
public int getNetbiosSndBufSize()Propertyorg.codelibs.jcifs.smb.netbios.snd_buf_size(int, default 576)- Specified by:
getNetbiosSndBufSizein interfaceConfiguration- Returns:
- netbios send buffer size
- See Also:
-
getNetbiosRetryTimeout
public int getNetbiosRetryTimeout()Propertyorg.codelibs.jcifs.smb.netbios.retryTimeout(int, default 3000)- Specified by:
getNetbiosRetryTimeoutin interfaceConfiguration- Returns:
- timeout of retry requests, in milliseconds
- See Also:
-
getNetbiosRetryCount
public int getNetbiosRetryCount()Propertyorg.codelibs.jcifs.smb.netbios.retryCount(int, default 2)- Specified by:
getNetbiosRetryCountin interfaceConfiguration- Returns:
- maximum number of retries for netbios requests
- See Also:
-
getNetbiosRcvBufSize
public int getNetbiosRcvBufSize()Propertyorg.codelibs.jcifs.smb.netbios.rcv_buf_size(int, default 576)- Specified by:
getNetbiosRcvBufSizein interfaceConfiguration- Returns:
- netbios recieve buffer size
- See Also:
-
getNetbiosCachePolicy
public int getNetbiosCachePolicy()Propertyorg.codelibs.jcifs.smb.netbios.cachePolicyin minutes (int, default 600)- Specified by:
getNetbiosCachePolicyin interfaceConfiguration- Returns:
- netbios cache timeout, in seconds, 0 - disable caching, -1 - cache forever
- See Also:
-
getTransactionBufferSize
public int getTransactionBufferSize()Propertyorg.codelibs.jcifs.smb.impl.client.transaction_buf_size(int, default 65535)- Specified by:
getTransactionBufferSizein interfaceConfiguration- Returns:
- maximum data size for SMB transactions
- See Also:
-
getBufferCacheSize
public int getBufferCacheSize()Propertyorg.codelibs.jcifs.smb.impl.maxBuffers(int, default 16)- Specified by:
getBufferCacheSizein interfaceConfiguration- Returns:
- number of buffers to keep in cache
- See Also:
-
getListCount
public int getListCount()Propertyorg.codelibs.jcifs.smb.impl.client.listCount(int, default 200)- Specified by:
getListCountin interfaceConfiguration- Returns:
- maxmimum number of elements to request in a list request
- See Also:
-
getListSize
public int getListSize()Propertyorg.codelibs.jcifs.smb.impl.client.listSize(int, default 65435)- Specified by:
getListSizein interfaceConfiguration- Returns:
- maximum data size for list/info requests (known overhead is subtracted)
- See Also:
-
getAttributeCacheTimeout
public long getAttributeCacheTimeout()Propertyorg.codelibs.jcifs.smb.impl.client.attrExpirationPeriod(int, 5000)- Specified by:
getAttributeCacheTimeoutin interfaceConfiguration- Returns:
- timeout of file attribute cache
- See Also:
-
isIgnoreCopyToException
public boolean isIgnoreCopyToException()Propertyorg.codelibs.jcifs.smb.impl.client.ignoreCopyToException(boolean, false)- Specified by:
isIgnoreCopyToExceptionin interfaceConfiguration- Returns:
- whether to ignore exceptions that occur during file copy
- See Also:
-
getBatchLimit
Gets the batch limit for a specific SMB command- Specified by:
getBatchLimitin interfaceConfiguration- Parameters:
cmd- the SMB command name- Returns:
- the batch limit for the given command
- See Also:
-
isAllowCompound
Checks if compound requests are allowed for the specified command- Specified by:
isAllowCompoundin interfaceConfiguration- Parameters:
command- the SMB command to check- Returns:
- whether to allow creating compound requests with that command
- See Also:
-
isTraceResourceUsage
public boolean isTraceResourceUsage()This is solely intended for debugging- Specified by:
isTraceResourceUsagein interfaceConfiguration- Returns:
- whether to track the locations from which resources were created
- See Also:
-
isStrictResourceLifecycle
public boolean isStrictResourceLifecycle()Propertyorg.codelibs.jcifs.smb.impl.client.strictResourceLifecycle(bool, default false) If enabled, SmbFile instances starting with their first use will hold a reference to their tree. This means that trees/sessions/connections won't be idle-disconnected even if there are no other active references (currently executing code, file descriptors). Depending on the usage scenario, this may have some benefit as there won't be any delays for restablishing these resources, however comes at the cost of having to properly release all SmbFile instances you no longer need.- Specified by:
isStrictResourceLifecyclein interfaceConfiguration- Returns:
- whether to use strict resource lifecycle
- See Also:
-
getMaxRequestRetries
public int getMaxRequestRetries()Propertyorg.codelibs.jcifs.smb.impl.client.maxRequestRetries(int, default 2)- Specified by:
getMaxRequestRetriesin interfaceConfiguration- Returns:
- retry SMB requests on failure up to n times
- See Also:
-
getMachineId
public byte[] getMachineId()Machine identifier ClientGuid, ... are derived from this value. Normally this should be randomly assigned for each client instance/configuration.- Specified by:
getMachineIdin interfaceConfiguration- Returns:
- machine identifier (32 byte)
- See Also:
-
getGuestUsername
Propertyorg.codelibs.jcifs.smb.impl.client.guestUsername, defaults to GUEST- Specified by:
getGuestUsernamein interfaceConfiguration- Returns:
- username used when guest authentication is requested
- See Also:
-
getGuestPassword
Propertyorg.codelibs.jcifs.smb.impl.client.guestPassword, defaults to empty string- Specified by:
getGuestPasswordin interfaceConfiguration- Returns:
- password used when guest authentication is requested
- See Also:
-
isAllowGuestFallback
public boolean isAllowGuestFallback()Propertyorg.codelibs.jcifs.smb.impl.client.allowGuestFallback, defaults to false- Specified by:
isAllowGuestFallbackin interfaceConfiguration- Returns:
- whether to permit guest logins when user authentication is requested
- See Also:
-