Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for isUseUnicode (0.13 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

            final FileBothDirectoryInfo[] results = new FileBothDirectoryInfo[getNumEntries()];
            for (int i = 0; i < getNumEntries(); i++) {
                results[i] = e = new FileBothDirectoryInfo(getConfig(), isUseUnicode());
    
                e.decode(buffer, bufferIndex, len);
    
                /*
                 * lastNameOffset ends up pointing to either to
                 * the exact location of the filename(e.g. Win98)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type1Message.java

         */
        public static int getDefaultFlags(final CIFSContext tc) {
            return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION
                    | (tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM);
        }
    
        /**
         * Returns the supplied authentication domain.
         *
         * @return A <code>String</code> containing the supplied domain.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            this.andxOffset = dstIndex - this.headerStart;
            SMBUtil.writeInt2(this.andxOffset, dst, start + ANDX_OFFSET_OFFSET);
    
            this.andx.setUseUnicode(this.isUseUnicode());
            if (this.andx instanceof AndXServerMessageBlock) {
    
                /*
                 * A word about communicating header info to andx smbs
                 *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/config/PropertyConfigurationTest.java

            props.setProperty("jcifs.util.loglevel", "1");
    
            // When
            PropertyConfiguration testConfig = new PropertyConfiguration(props);
    
            // Then
            assertTrue(testConfig.isUseUnicode());
            assertFalse(testConfig.isDisablePlainTextPasswords());
        }
    
        @Test
        @DisplayName("Should handle dialect version properties")
        void testDialectVersionProperties() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            }
    
            @Test
            @DisplayName("Test use unicode property")
            void testUseUnicodeProperty() {
                assertFalse(testBlock.isUseUnicode());
                testBlock.setUseUnicode(true);
                assertTrue(testBlock.isUseUnicode());
            }
    
            @Test
            @DisplayName("Test force unicode property")
            void testForceUnicodeProperty() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            byte[] machineId = new byte[32];
            mockRandom.nextBytes(machineId);
    
            lenient().when(mockConfig.getDefaultDomain()).thenReturn("TESTDOMAIN");
            lenient().when(mockConfig.isUseUnicode()).thenReturn(true);
            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
            lenient().when(mockConfig.getRandom()).thenReturn(mockRandom);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

            }
    
            return dstIndex - start;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (this.isUseUnicode()) {
                dst[dstIndex] = (byte) '\0';
                dstIndex++;
            }
            dstIndex += writeString(this.path, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // When & Then - should not throw exceptions
            assertDoesNotThrow(() -> {
                configWithBaseDelegate.getResponseTimeout();
                configWithBaseDelegate.isUseUnicode();
                configWithBaseDelegate.getOemEncoding();
            }, "Should work with BaseConfiguration delegate");
    
            // Test chaining delegates
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65535);
            when(mockConfig.getTransactionBufferSize()).thenReturn(65535);
            when(mockConfig.isUseUnicode()).thenReturn(true);
            when(mockConfig.isForceUnicode()).thenReturn(false);
            when(mockConfig.getOemEncoding()).thenReturn("ASCII");
        }
    
        @Test
        @DisplayName("Test constructor with standard path")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            int n = writeString(this.path, dst, dstIndex);
            SMBUtil.writeInt2(this.isUseUnicode() ? this.path.length() * 2 : n, dst, this.namelen_index);
            return n;
        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top