- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for getOEMEncoding (0.86 sec)
-
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) -
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) -
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) -
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) -
src/test/java/jcifs/util/StringsTest.java
when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // When byte[] result = Strings.getOEMBytes(TEST_STRING, mockConfig); // Then assertNotNull(result, "Result should not be null"); assertTrue(result.length > 0, "Result should not be empty"); verify(mockConfig).getOemEncoding(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
void testGetPreNTLMResponse_basicAndInteractions() throws Exception { // Arrange when(cifsContext.getConfig()).thenReturn(configuration); when(configuration.getOemEncoding()).thenReturn("Cp850"); String password14 = "ABCDEFGHIJKLMN"; // 14 chars String password15 = "ABCDEFGHIJKLMNO"; // 15 chars, same first 14 byte[] challenge = hex("0102030405060708");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
} @Test @DisplayName("String configuration methods should delegate correctly") void testStringConfigurationDelegation() { // Given when(mockDelegate.getOemEncoding()).thenReturn("UTF-8"); when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
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) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
assertEquals(pos, NtlmMessage.readULong(dest, off), "Position should still be written for empty source."); } @Test void testGetOEMEncoding() { // Test getOEMEncoding assertEquals("Cp850", NtlmMessage.getOEMEncoding(), "Should return the correct OEM encoding."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
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)