Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 26 for SMB311 (0.06 seconds)

  1. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        void testGetSelectedDialectSMB3() {
            // Arrange
            when(negotiationResponse.getSelectedDialect()).thenReturn(DialectVersion.SMB311);
    
            // Act
            DialectVersion dialect = negotiationResponse.getSelectedDialect();
    
            // Assert
            assertEquals(DialectVersion.SMB311, dialect);
            verify(negotiationResponse).getSelectedDialect();
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/config/SecurityConfigurationTest.java

            assertEquals("LM compatibility should default to 3", 3, config.getLanManCompatibility());
    
            // Verify maximum version supports latest SMB 3.1.1
            assertEquals("Maximum version should be SMB 3.1.1", DialectVersion.SMB311, config.getMaximumVersion());
        }
    
        /**
         * Test that SMB1 is disabled by default
         */
        @Test
        public void testSMB1Disabled() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

        }
    
        @Test
        void testWithMockConfiguration() {
            when(mockConfig.getMinimumVersion()).thenReturn(jcifs.DialectVersion.SMB1);
            when(mockConfig.getMaximumVersion()).thenReturn(jcifs.DialectVersion.SMB311);
    
            trans2QueryPathInfo = new Trans2QueryPathInformation(mockConfig, TEST_FILENAME, TEST_INFO_LEVEL);
    
            assertNotNull(trans2QueryPathInfo);
    
            // Configuration is accessed during initialization
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                jcifs.DialectVersion dialect = transport.getNegotiateResponse().getSelectedDialect();
                return transport.isSMB2() && dialect.atLeast(jcifs.DialectVersion.SMB300) && !dialect.atLeast(jcifs.DialectVersion.SMB311);
            } catch (final SmbException e) {
                log.debug("Failed to connect for determining SMB 3.0 support", e);
                return false;
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            }
    
            final List<NegotiateContextRequest> negoContexts = new LinkedList<>();
            if (config.getMaximumVersion() != null && config.getMaximumVersion().atLeast(DialectVersion.SMB311)) {
                final byte[] salt = new byte[32];
                config.getRandom().nextBytes(salt);
                negoContexts.add(
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

                final int reqLen = negotiateWrite(smb2neg, first != null);
                final boolean doPreauth = getContext().getConfig().getMaximumVersion().atLeast(DialectVersion.SMB311);
                if (doPreauth) {
                    negoReqBuffer = new byte[reqLen];
                    System.arraycopy(this.sbuf, 4, negoReqBuffer, 0, reqLen);
                }
    
                negotiatePeek();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            when(mockConfig.getMaximumBufferSize()).thenReturn(65535);
            when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB1);
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311);
            response = new TestSmbComNtTransactionResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with Configuration")
        void testConstructor() {
            assertNotNull(response);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

                return;
            }
    
            final Smb2NegotiateResponse nego = (Smb2NegotiateResponse) trans.getNegotiateResponse();
            if (nego.getSelectedDialect().atLeast(DialectVersion.SMB311)) {
                // have preauth integrity instead
                log.debug("Secure negotiation does not apply, is SMB3.1");
                return;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  9. src/test/java/jcifs/config/DelegatingConfigurationTest.java

        void testProtocolVersionDelegation() {
            // Given
            DialectVersion minVersion = DialectVersion.SMB1;
            DialectVersion maxVersion = DialectVersion.SMB311;
            when(mockDelegate.getMinimumVersion()).thenReturn(minVersion);
            when(mockDelegate.getMaximumVersion()).thenReturn(maxVersion);
    
            // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

        void testWithMockConfiguration() {
            when(mockConfig.getMinimumVersion()).thenReturn(jcifs.DialectVersion.SMB1);
            when(mockConfig.getMaximumVersion()).thenReturn(jcifs.DialectVersion.SMB311);
    
            trans2QueryFSInfo = new Trans2QueryFSInformation(mockConfig, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            assertNotNull(trans2QueryFSInfo);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.9K bytes
    - Click Count (0)
Back to Top