Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 40 for Dialect (0.05 seconds)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should return correct dialect version")
        void testGetDialect() {
            // When
            DialectVersion dialect = encryptionContext.getDialect();
    
            // Then
            assertEquals(DialectVersion.SMB311, dialect, "Should return the dialect set in constructor");
        }
    
        @Test
        @DisplayName("Should handle SMB 3.0 dialect")
        void testSMB300Dialect() {
            // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  2. tests/gorm_test.go

    	if err == nil {
    		t.Fatalf("should returns error but got nil")
    	}
    }
    
    func TestReturningWithNullToZeroValues(t *testing.T) {
    	dialect := DB.Dialector.Name()
    	switch dialect {
    	case "mysql", "sqlserver":
    		// these dialects do not support the "returning" clause
    		return
    	default:
    		// This user struct will leverage the existing users table, but override
    		// the Name field to default to null.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Jun 01 07:22:21 GMT 2023
    - 3.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            assertEquals(4, dialects.length); // SMB210, SMB300, SMB302, SMB311
            assertEquals(0x0210, dialects[0]);
            assertEquals(0x0300, dialects[1]);
            assertEquals(0x0302, dialects[2]);
            assertEquals(0x0311, dialects[3]);
        }
    
        @Test
        @DisplayName("Should set client GUID for SMB2.1+")
        void testClientGuidSmb21() {
            // Given
    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)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            }
    
            if (selected == null) {
                log.debug("Server returned an unknown dialect");
                return false;
            }
    
            if (!selected.atLeast(getConfig().getMinimumVersion()) || !selected.atMost(getConfig().getMaximumVersion())) {
                log.debug("Server selected an disallowed dialect version {} (min: {} max: {})", selected, getConfig().getMinimumVersion(),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  5. src/test/java/jcifs/config/PropertyConfigurationTest.java

            // Then
            assertTrue(testConfig.isUseUnicode());
            assertFalse(testConfig.isDisablePlainTextPasswords());
        }
    
        @Test
        @DisplayName("Should handle dialect version properties")
        void testDialectVersionProperties() throws CIFSException {
            // Given
            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.minVersion", "SMB1");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @DisplayName("Should throw exception for invalid dialects")
            void testConstructorInvalidDialects(int dialect) {
                IllegalArgumentException exception =
                        assertThrows(IllegalArgumentException.class, () -> new Smb2SigningDigest(sessionKey, dialect, null));
                assertEquals("Unknown dialect", exception.getMessage());
            }
        }
    
        @Nested
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  7. README.md

    - **Encryption Context**: Per-session encryption state management
    - **Key Derivation**: SMB3 KDF implementation with dialect-specific parameters
    - **Pre-Authentication Integrity**: SMB 3.1.1 PAI for preventing downgrade attacks
    - **Automatic Detection**: Encryption automatically enabled when servers require it
    - **Secure Key Management**: Proper key derivation and nonce generation
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 09:24:52 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
                jcifs.DialectVersion dialect = transport.getNegotiateResponse().getSelectedDialect();
                return transport.isSMB2() && dialect.atLeast(jcifs.DialectVersion.SMB300) && !dialect.atLeast(jcifs.DialectVersion.SMB311);
            } catch (final SmbException e) {
    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)
  9. src/main/java/jcifs/config/PropertyConfiguration.java

                this.nativeOs = value;
            }
    
            value = props.getProperty("jcifs.smb.client.nativeLanMan");
            if (value != null) {
                this.nativeLanMan = value;
            }
    
            // Dialect version properties - these should throw exceptions for invalid values
            String minVersion = props.getProperty("jcifs.smb.client.minVersion");
            String maxVersion = props.getProperty("jcifs.smb.client.maxVersion");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
    
            final Smb2NegotiateResponse resp = (Smb2NegotiateResponse) this.negotiated;
            final DialectVersion dialect = resp.getSelectedDialect();
            int cipherId = -1;
    
            if (dialect.atLeast(DialectVersion.SMB311)) {
                cipherId = resp.getSelectedCipher();
                if (cipherId == -1) {
    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)
Back to Top