Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getDialect (0.22 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            assertArrayEquals(testGuid, response.getServerGuid(), "Server GUID should match");
            assertEquals(testSecurityMode, response.getSecurityMode(), "Security mode should match");
            assertEquals(testDialect, response.getDialect(), "Dialect should match");
        }
    
        @Test
        @DisplayName("Test decode with different buffer offset")
        void testDecodeWithDifferentOffset() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Then
            assertNotNull(context, "Encryption context should be created");
            assertEquals(1, context.getCipherId(), "Cipher ID should match");
            assertEquals(DialectVersion.SMB311, context.getDialect(), "Dialect should match");
        }
    
        @Test
        @DisplayName("Should return correct cipher ID")
        void testGetCipherId() {
            // When
            int cipherId = encryptionContext.getCipherId();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportImplTest.java

                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_CCM, ccm.getCipherId());
                assertEquals(DialectVersion.SMB300, ccm.getDialect());
    
                // SMB 3.1.1 -> default AES-128-GCM when server did not choose
                Smb2NegotiateResponse smb311 = new Smb2NegotiateResponse(cfg);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         */
        public int getCipherId() {
            return this.cipherId;
        }
    
        /**
         * Get the SMB dialect version
         * @return the SMB dialect version
         */
        public DialectVersion getDialect() {
            return this.dialect;
        }
    
        /**
         * Set key rotation limits
         *
         * @param bytesLimit maximum bytes to encrypt before rotation (0 to disable)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

            if (nego.getSecurityMode() != out.getSecurityMode() || nego.getCapabilities() != out.getCapabilities()
                    || nego.getDialectRevision() != out.getDialect() || !Arrays.equals(nego.getServerGuid(), out.getServerGuid())) {
                log.debug("Secure negotiation failure");
                throw new CIFSException("Mismatched attributes validating negotiate info");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            DialectVersion selected = null;
            for (final DialectVersion dv : DialectVersion.values()) {
                if (!dv.isSMB2()) {
                    continue;
                }
                if (dv.getDialect() == getDialectRevision()) {
                    selected = dv;
                }
            }
    
            if (selected == null) {
                log.debug("Server returned an unknown dialect");
                return false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            assertNotNull(request.getDialects());
            assertNotNull(request.getClientGuid());
            assertNotNull(request.getNegotiateContexts());
            assertNotNull(request.getPreauthSalt());
    
            // Verify data integrity
            assertEquals(16, request.getClientGuid().length);
            assertEquals(32, request.getPreauthSalt().length);
            assertTrue(request.getDialects().length > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top