Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for dialects (0.28 sec)

  1. src/main/java/jcifs/DialectVersion.java

        private final boolean smb2;
        private final int dialect;
    
        /**
         *
         */
        DialectVersion() {
            this.smb2 = false;
            this.dialect = -1;
        }
    
        DialectVersion(final int dialectId) {
            this.smb2 = true;
            this.dialect = dialectId;
        }
    
        /**
         * Check if this is an SMB2 dialect version
         *
         * @return the smb2
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        }
    
        @Test
        @DisplayName("Test all dialect versions")
        void testAllDialectVersions() {
            // Test each dialect version
            DialectVersion[] dialects = { DialectVersion.SMB1, DialectVersion.SMB202, DialectVersion.SMB210, DialectVersion.SMB300,
                    DialectVersion.SMB302, DialectVersion.SMB311 };
    
            for (DialectVersion dialect : dialects) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportImplTest.java

                assertThrows(SmbUnsupportedOperationException.class, () -> transport.calculatePreauthHash(new byte[] { 1 }, 0, 1, null));
            }
    
            @Test
            @DisplayName("calculatePreauthHash rejects dialects before SMB 3.1.1")
            void preauthHash_rejectsOldDialect() {
                setField(transport, "smb2", true);
                Smb2NegotiateResponse nego = new Smb2NegotiateResponse(cfg);
                // selectedDialect: SMB300
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

         */
        public int getSecurityMode() {
            return this.securityMode;
        }
    
        /**
         * Gets the negotiated SMB dialect
         *
         * @return the SMB dialect negotiated with the server
         */
        public int getDialect() {
            return this.dialect;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         *            negotiated cipher identifier
         * @param dialect
         *            SMB dialect version
         * @param encryptionKey
         *            key for client->server encryption
         * @param decryptionKey
         *            key for server->client decryption
         */
        public Smb2EncryptionContext(final int cipherId, final DialectVersion dialect, final byte[] encryptionKey, final byte[] decryptionKey) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Set security mode (2 bytes)
            int testSecurityMode = 0x0003;
            SMBUtil.writeInt2(testSecurityMode, buffer, bufferIndex + 20);
    
            // Set dialect (2 bytes)
            int testDialect = 0x0311;
            SMBUtil.writeInt2(testDialect, buffer, bufferIndex + 22);
    
            // Execute decode
            int bytesDecoded = response.decode(buffer, bufferIndex, 24);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/Smb2Constants.java

        /**
         * SMB 2.0.2 dialect (Windows Vista/Server 2008)
         */
        public static final int SMB2_DIALECT_0202 = 0x0202;
    
        /**
         * SMB 2.1 dialect (Windows 7/Server 2008R2)
         */
        public static final int SMB2_DIALECT_0210 = 0x0210;
    
        /**
         * SMB 3.0 dialect (Windows 8/Server 2012)
         */
        public static final int SMB2_DIALECT_0300 = 0x0300;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

        private volatile boolean closed = false;
    
        /**
         * Constructs a SMB2 signing digest with the specified session key and dialect
         *
         * @param sessionKey
         *            the session key for signing
         * @param dialect
         *            the SMB2 dialect version
         * @param preauthIntegrityHash
         *            the pre-authentication integrity hash (for SMB 3.1.1)
         * @throws GeneralSecurityException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/DialectVersionTest.java

                    assertTrue(dialectCodes.add(dialect), "Dialect code should be unique for " + version);
                }
            }
    
            // Should have 5 unique dialect codes for SMB2+ versions
            assertEquals(5, dialectCodes.size());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top