Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for DialectVersion (0.24 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/DialectVersionTest.java

            // Test equality
            assertEquals(DialectVersion.SMB311, DialectVersion.SMB311);
            assertNotEquals(DialectVersion.SMB1, DialectVersion.SMB311);
    
            // Test comparison
            assertTrue(DialectVersion.SMB1.compareTo(DialectVersion.SMB311) < 0);
            assertTrue(DialectVersion.SMB311.compareTo(DialectVersion.SMB1) > 0);
            assertEquals(0, DialectVersion.SMB302.compareTo(DialectVersion.SMB302));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        void testAllDialectVersions() {
            // Test each dialect version
            DialectVersion[] dialects = { DialectVersion.SMB1, DialectVersion.SMB202, DialectVersion.SMB210, DialectVersion.SMB300,
                    DialectVersion.SMB302, DialectVersion.SMB311 };
    
            for (DialectVersion dialect : dialects) {
                when(negotiationResponse.getSelectedDialect()).thenReturn(dialect);
    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)
  3. src/test/java/jcifs/config/BaseConfigurationTest.java

        void testInitProtocolVersionsWithDialectVersions() {
            config.initProtocolVersions(DialectVersion.SMB210, DialectVersion.SMB300);
    
            assertEquals(DialectVersion.SMB210, config.getMinimumVersion());
            assertEquals(DialectVersion.SMB300, config.getMaximumVersion());
        }
    
        @Test
        @DisplayName("Test initProtocolVersions with null DialectVersions")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/config/BaseConfiguration.java

         */
        protected void initProtocolVersions(final String minStr, final String maxStr) {
            final DialectVersion min = minStr != null && !minStr.isEmpty() ? DialectVersion.valueOf(minStr) : null;
            final DialectVersion max = maxStr != null && !maxStr.isEmpty() ? DialectVersion.valueOf(maxStr) : null;
            initProtocolVersions(min, max);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

    import org.bouncycastle.crypto.params.AEADParameters;
    import org.bouncycastle.crypto.params.KeyParameter;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    import jcifs.internal.smb2.nego.EncryptionNegotiateContext;
    import jcifs.util.SecureKeyManager;
    
    /**
     * SMB2/SMB3 Encryption Context
     *
     * Manages encryption and decryption operations for SMB2/SMB3 sessions.
    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)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            return Stream.of(Arguments.of(DialectVersion.SMB202, DialectVersion.SMB202, new int[] { 0x0202 }),
                    Arguments.of(DialectVersion.SMB202, DialectVersion.SMB210, new int[] { 0x0202, 0x0210 }),
                    Arguments.of(DialectVersion.SMB210, DialectVersion.SMB300, new int[] { 0x0210, 0x0300 }),
                    Arguments.of(DialectVersion.SMB202, DialectVersion.SMB311, new int[] { 0x0202, 0x0210, 0x0300, 0x0302, 0x0311 }),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                log.debug("Server returned ANY dialect");
                return false;
            }
    
            final Smb2NegotiateRequest r = (Smb2NegotiateRequest) req;
    
            DialectVersion selected = null;
            for (final DialectVersion dv : DialectVersion.values()) {
                if (!dv.isSMB2()) {
                    continue;
                }
                if (dv.getDialect() == getDialectRevision()) {
                    selected = dv;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/SmbNegotiationResponse.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal;
    
    import jcifs.CIFSContext;
    import jcifs.DialectVersion;
    import jcifs.util.transport.Response;
    
    /**
     * Interface for SMB protocol negotiation response handling.
     * Represents the server's response to a protocol negotiation request, containing negotiated
    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)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        private static Stream<Arguments> provideDialectVersions() {
            return Stream.of(Arguments.of(0x0202, DialectVersion.SMB202, true), Arguments.of(0x0210, DialectVersion.SMB210, true),
                    Arguments.of(0x0300, DialectVersion.SMB300, true), Arguments.of(0x0302, DialectVersion.SMB302, true),
                    Arguments.of(0x0311, DialectVersion.SMB311, true), Arguments.of(0xFFFF, null, false), // SMB2_DIALECT_ANY
    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)
  10. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#getSelectedDialect()
         */
        @Override
        public DialectVersion getSelectedDialect() {
            return DialectVersion.SMB1;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#getTransactionBufferSize()
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top