Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getDialects (0.1 sec)

  1. 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)
  2. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            return this.capabilities;
        }
    
        /**
         * Gets the array of SMB dialect versions supported by the client.
         *
         * @return the dialects
         */
        public int[] getDialects() {
            return this.dialects;
        }
    
        /**
         * Gets the client GUID used for identification.
         *
         * @return the clientGuid
         */
        public byte[] getClientGuid() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

            req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
            req.setInputData(new ValidateNegotiateInfoRequest(negoReq.getCapabilities(), negoReq.getClientGuid(),
                    (short) negoReq.getSecurityMode(), negoReq.getDialects()));
    
            Smb2IoctlResponse resp;
            try {
                resp = send(req, RequestParam.NO_RETRY);
            } catch (final SMBSignatureValidationException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/test/java/jcifs/DialectVersionTest.java

                DialectVersion.SMB1.getDialect();
            });
    
            // SMB2+ versions should have valid dialect codes
            assertTrue(DialectVersion.SMB202.getDialect() > 0);
            assertTrue(DialectVersion.SMB210.getDialect() > 0);
            assertTrue(DialectVersion.SMB300.getDialect() > 0);
            assertTrue(DialectVersion.SMB302.getDialect() > 0);
            assertTrue(DialectVersion.SMB311.getDialect() > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. 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)
  6. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

            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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/DialectVersion.java

         */
        public final boolean isSMB2() {
            return this.smb2;
        }
    
        /**
         * Get the SMB2 dialect identifier
         *
         * @return the dialect
         */
        public final int getDialect() {
            if (!this.smb2) {
                throw new UnsupportedOperationException();
            }
            return this.dialect;
        }
    
        /**
         * Check if this dialect version is at least the specified version
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top