- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 381 for readn (1.11 sec)
-
src/main/java/jcifs/smb/NtlmAuthenticator.java
*/ package jcifs.smb; /** * This class can be extended by applications that wish to trap authentication related exceptions and automatically * retry the exceptional operation with different credentials. Read <a href="../../../authhandler.html">jCIFS Exceptions * and NtlmAuthenticator</a> for complete details. */ /** * An abstract class for NTLM authentication.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
BaseConfiguration config = new BaseConfiguration(true); Smb2IoctlResponse resp = new Smb2IoctlResponse(config); int read = resp.decode(packet, 0); assertTrue(read >= packet.length, "Decoded length should cover entire packet"); assertNotNull(resp.getErrorData(), "Error data should be decoded"); assertEquals(3, resp.getErrorData().length);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
questionNameField.set(nameQueryResponse, mockRecordName); // The method should return the number of bytes read by readResourceRecordWireFormat int result = nameQueryResponse.readBodyWireFormat(src, srcIndex); assertEquals(12 + 6, result, "readBodyWireFormat should return the total bytes read"); } @Test void writeRDataWireFormat_shouldReturnZero() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
int offset = 10; // When int bytesRead = request.readBytesWireFormat(buffer, offset); // Then assertEquals(0, bytesRead, "Cancel requests do not read response data"); } @Test @DisplayName("Test multiple property settings") void testMultiplePropertySettings() { // Given long mid = 99999L; long asyncId = 88888L;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
void testReadBytesWireFormatNegativeStructureSize() { byte[] buffer = new byte[1024]; int bufferIndex = 0; // Set structure size to -1 (0xFFFF when read as unsigned) SMBUtil.writeInt2(0xFFFF, buffer, bufferIndex); SMBProtocolDecodingException exception =
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
@Test void testTimeReadWriteZero() { byte[] buffer = new byte[8]; ServerMessageBlock.writeTime(0, buffer, 0); // When zero is written, it stays as zero in buffer // When read back, it converts to negative Unix time due to Windows FileTime conversion long expectedTime = -SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601; assertEquals(expectedTime, ServerMessageBlock.readTime(buffer, 0));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/MimeMap.java
int n; in = new byte[IN_SIZE]; final InputStream is = getClass().getClassLoader().getResourceAsStream("jcifs/smb1/util/mime.map"); inLen = 0; while ((n = is.read(in, inLen, IN_SIZE - inLen)) != -1) { inLen += n; } if (inLen < 100 || inLen == IN_SIZE) { throw new IOException("Error reading jcifs/smb1/util/mime.map resource"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
int bytesUsed = buf.getIndex(); // Should be 2 bytes for the short value (alignment may add padding) assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short"); // Reset index to read back buf.reset(); NdrShort decoded = new NdrShort(0); // placeholder value decoded.decode(buf); assertEquals(expected, decoded.value, "decoded value should match original after masking"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Test excessive maxTransactSize (> 16MB) SMBUtil.writeInt4(20 * 1024 * 1024, buffer, 28); // 20MB SMBUtil.writeInt4(1024 * 1024, buffer, 32); // 1MB read size - valid SMBUtil.writeInt4(1024 * 1024, buffer, 36); // 1MB write size - valid SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java
*/ package jcifs.smb1.smb1; /** This class can be extended by applications that wish to trap authentication related exceptions and automatically retry the exceptional operation with different credentials. Read <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for complete details. */ /** * An abstract class for NTLM authentication in SMB1 protocol.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.7K bytes - Viewed (0)