Class SmbConfig


  • public final class SmbConfig
    extends java.lang.Object
    • Field Detail

      • DEFAULT_SO_TIMEOUT_UNIT

        private static final java.util.concurrent.TimeUnit DEFAULT_SO_TIMEOUT_UNIT
      • DEFAULT_TIMEOUT_UNIT

        private static final java.util.concurrent.TimeUnit DEFAULT_TIMEOUT_UNIT
      • ANDROID

        private static final boolean ANDROID
      • dialects

        private java.util.Set<SMB2Dialect> dialects
      • socketFactory

        private javax.net.SocketFactory socketFactory
      • random

        private java.util.Random random
      • clientGuid

        private java.util.UUID clientGuid
      • signingRequired

        private boolean signingRequired
      • signingEnabled

        private boolean signingEnabled
      • dfsEnabled

        private boolean dfsEnabled
      • useMultiProtocolNegotiate

        private boolean useMultiProtocolNegotiate
      • readBufferSize

        private int readBufferSize
      • readTimeout

        private long readTimeout
      • writeBufferSize

        private int writeBufferSize
      • writeTimeout

        private long writeTimeout
      • transactBufferSize

        private int transactBufferSize
      • transactTimeout

        private long transactTimeout
      • encryptData

        private boolean encryptData
      • soTimeout

        private int soTimeout
    • Constructor Detail

      • SmbConfig

        private SmbConfig()
      • SmbConfig

        private SmbConfig​(SmbConfig other)
    • Method Detail

      • createDefaultConfig

        public static SmbConfig createDefaultConfig()
      • getDefaultSecurityProvider

        private static SecurityProvider getDefaultSecurityProvider()
      • getRandomProvider

        public java.util.Random getRandomProvider()
      • getSupportedDialects

        public java.util.Set<SMB2Dialect> getSupportedDialects()
      • getClientGuid

        public java.util.UUID getClientGuid()
      • isSigningRequired

        public boolean isSigningRequired()
        Whether the client requires that messages from the server are signed. When message signing is enforced a received message that is not signed properly will result in an exception.
      • isSigningEnabled

        public boolean isSigningEnabled()
        Whether the client should sign messages to the server. When message signing is enabled the client will sign messages to the server.
      • isDfsEnabled

        public boolean isDfsEnabled()
        Whether the client should use the DFS protocol.
      • isUseMultiProtocolNegotiate

        public boolean isUseMultiProtocolNegotiate()
      • getReadBufferSize

        public int getReadBufferSize()
      • getReadTimeout

        public long getReadTimeout()
      • getWriteBufferSize

        public int getWriteBufferSize()
      • getWriteTimeout

        public long getWriteTimeout()
      • getTransactBufferSize

        public int getTransactBufferSize()
      • getTransactTimeout

        public long getTransactTimeout()
      • getSoTimeout

        public int getSoTimeout()
      • getSocketFactory

        public javax.net.SocketFactory getSocketFactory()
      • getClientGSSContextConfig

        public GSSContextConfig getClientGSSContextConfig()
      • isEncryptData

        public boolean isEncryptData()
      • getWorkStationName

        public java.lang.String getWorkStationName()
        Deprecated.
        Moved into getNtlmConfig().getWorkStationName()
        Get the work station name to be used in the NTLM authentication.
      • getNtlmConfig

        public NtlmConfig getNtlmConfig()