Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getOEMEncoding (0.16 sec)

  1. src/main/java/jcifs/util/Strings.java

            if (str == null) {
                return new byte[0];
            }
            try {
                return str.getBytes(config.getOemEncoding());
            } catch (final UnsupportedEncodingException e) {
                throw new RuntimeCIFSException("Unsupported OEM encoding " + config.getOemEncoding(), e);
            }
        }
    
        /**
         * Decodes a string from UTF-16LE (Unicode Little Endian) bytes.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

                suppliedDomain = new String(domain, getOEMEncoding());
            }
            String suppliedWorkstation = null;
            if ((flags & NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED) != 0) {
                final byte[] workstation = readSecurityBuffer(material, 24);
                suppliedWorkstation = new String(workstation, getOEMEncoding());
            }
            setFlags(flags);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

        private SmbComQueryInformation cmd;
    
        @BeforeEach
        void setUp() {
            // Configure the mock to return the OEM encoding which is required for writeString
            when(mockConfig.getOemEncoding()).thenReturn("windows-1252");
            cmd = new SmbComQueryInformation(mockConfig, "testfile.txt");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type1Message.java

                setSuppliedDomain(new String(domain, getOEMEncoding()));
            }
            pos += 8;
    
            if ((flags & NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED) != 0) {
                final byte[] workstation = readSecurityBuffer(material, pos);
                setSuppliedWorkstation(new String(workstation, getOEMEncoding()));
            }
            pos += 8;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertArrayEquals(payload, actualPayload, "Payload copy must match");
        }
    
        @Test
        @DisplayName("getOEMEncoding returns configured OEM encoding")
        void testGetOEMEncoding() {
            assertEquals(Config.DEFAULT_OEM_ENCODING, NtlmMessage.getOEMEncoding(), "OEM encoding should match config’s default value");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ConfigurationTest.java

                mockConfig.getVcNumber();
                mockConfig.getCapabilities();
                mockConfig.getFlags2();
                mockConfig.getSessionLimit();
                mockConfig.getOemEncoding();
                mockConfig.getLocalTimezone();
                mockConfig.getPid();
                mockConfig.getMaxMpxCount();
                mockConfig.isSigningEnabled();
                mockConfig.isIpcSigningEnforced();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

        void setUp() {
            // Mock the Configuration object
            mockConfig = mock(Configuration.class);
            // Define behavior for the OEM encoding, which is used by writeString
            when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name());
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly sets the command and path
            String directoryName = "testDir";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

            writeUShort(dest, offset + 2, length);
            writeULong(dest, offset + 4, bodyOffset);
            System.arraycopy(src, 0, dest, bodyOffset, length);
        }
    
        static String getOEMEncoding() {
            return OEM_ENCODING;
        }
    
        /**
         * Returns the raw byte representation of this message.
         *
         * @return A <code>byte[]</code> containing the raw message material.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/NtlmMessage.java

            if (src != null && src.length > 0) {
                System.arraycopy(src, 0, dest, pos, src.length);
                return src.length;
            }
            return 0;
        }
    
        static String getOEMEncoding() {
            return OEM_ENCODING;
        }
    
        /**
         * Returns the raw byte representation of this message.
         *
         * @return A <code>byte[]</code> containing the raw message material.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top