Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getDialect (0.07 sec)

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

            this.dialects = new int[dvs.size()];
            int i = 0;
            for (final DialectVersion ver : dvs) {
                this.dialects[i] = ver.getDialect();
                i++;
            }
    
            if (config.getMaximumVersion().atLeast(DialectVersion.SMB210)) {
                System.arraycopy(config.getMachineId(), 0, this.clientGuid, 0, this.clientGuid.length);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top