- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 40 for Dialect (0.07 seconds)
-
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) {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) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
// Verify dialect count assertEquals(manyDialects.length, SMBUtil.readInt2(buffer, 22)); // Verify all dialects for (int i = 0; i < manyDialects.length; i++) { assertEquals(manyDialects[i], SMBUtil.readInt2(buffer, 24 + i * 2)); } } @Test @DisplayName("Test encode preserves dialect order") void testEncodePreservesDialectOrder() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.7K bytes - Click Count (0) -
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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 4.5K bytes - Click Count (0) -
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) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
assertEquals(expectedBytes.length, bytesWritten, "The number of bytes written should match the length of the dialect string."); // Verify the content of the destination array assertArrayEquals(expectedBytes, dst, "The destination array should contain the ASCII bytes of the dialect string."); } /** * Test the readParameterWordsWireFormat method. * This method should do nothing and return 0.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
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) -
src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequest.java
* @param dialects * the SMB dialects supported by the client */ public ValidateNegotiateInfoRequest(final int capabilities, final byte[] clientGuid, final int securityMode, final int[] dialects) { this.capabilities = capabilities; this.clientGuid = clientGuid; this.securityMode = securityMode; this.dialects = dialects; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
} @Test @DisplayName("Should return dialect revision") void testGetDialectRevision() throws Exception { // Given setPrivateField(response, "dialectRevision", 0x0311); // When int dialect = response.getDialectRevision(); // Then assertEquals(0x0311, dialect); } @Test @DisplayName("Should return server GUID")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/SmbNegotiationResponse.java
* @return whether the protocol negotiation was successful */ boolean isValid(CIFSContext cifsContext, SmbNegotiationRequest request); /** * Gets the SMB dialect version selected by the server. * * @return selected dialect */ DialectVersion getSelectedDialect(); /** * Checks whether the server has SMB message signing enabled. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
* Test validation of excessive negotiate context count. */ @Test public void testExcessiveNegotiateContextCount() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Set SMB 3.1.1 dialect SMBUtil.writeInt2(0x0311, buffer, 4); // Set excessive negotiate context count (should be limited to 100) SMBUtil.writeInt2(1000, buffer, 6); // Set negotiate context offset to valid valueCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.8K bytes - Click Count (0)