- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 230 for SMBUtil (0.04 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; @ExtendWith(MockitoExtension.class) class Smb2LogoffResponseTest { // Helper to create an instance with a mocked Configuration private Smb2LogoffResponse newResponse() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java
} final short dataOffset = buffer[bufferIndex + 2]; bufferIndex += 4; this.dataLength = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.dataRemaining = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; bufferIndex += 4; // Reserved2 final int dataStart = getHeaderStart() + dataOffset;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
import jcifs.Configuration; import jcifs.RuntimeCIFSException; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * Base class for SMB1 AndX (chained) command messages. * This class extends ServerMessageBlock to support SMB1 command chaining, where multiple
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.SmbConstants; import jcifs.internal.smb1.com.SmbComReadAndXResponse; import jcifs.internal.smb1.trans.nt.SmbComNtCancel; import jcifs.internal.util.SMBUtil; import jcifs.smb.NtlmPasswordAuthenticator; import jcifs.smb.SmbException; import jcifs.smb.SmbTransportInternal; /** * Unit tests for SMB1SigningDigest */ public class SMB1SigningDigestTest {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
} offset += descrBytes.length; // 3. Level (2 bytes) assertEquals(0x0001, SMBUtil.readInt2(dst, offset)); offset += 2; // 4. MaxDataCount (2 bytes) int maxDataCount = SMBUtil.readInt2(dst, offset); assertTrue(maxDataCount > 0); offset += 2; // Verify total bytes written
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvTimestamp.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
// Assert: should write exactly 4 bytes assertEquals(4, written, "Should report 4 bytes written"); // StructureSize (2 bytes, LE) == 4 assertEquals(4, SMBUtil.readInt2(buf, offset)); // Reserved (2 bytes, LE) == 0 assertEquals(0, SMBUtil.readInt2(buf, offset + 2)); } @Test @DisplayName("writeBytesWireFormat throws when buffer too small")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
} } @Nested @DisplayName("Integration Tests with SMBUtil") class SMBUtilIntegrationTests { @Test @DisplayName("Should use SMBUtil.writeInt2 for referral level") void testSMBUtilWriteInt2ForReferralLevel() { try (MockedStatic<SMBUtil> mockedSMBUtil = mockStatic(SMBUtil.class)) { String path = "\\\\server";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java
final int start = bufferIndex; final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 17) { throw new SMBProtocolDecodingException("Expected structureSize = 17"); } bufferIndex += 4; this.count = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.remaining = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/NetServerEnum2.java
return 0; } SMBUtil.writeInt2(getSubCommand() & 0xFF, dst, dstIndex); dstIndex += 2; System.arraycopy(descr, 0, dst, dstIndex, descr.length); dstIndex += descr.length; SMBUtil.writeInt2(0x0001, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt4(this.serverTypes, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0)