- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 62 for Smb2Constants (0.04 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
import org.junit.jupiter.params.provider.ValueSource; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Test class for Smb2FlushRequest functionality */ @DisplayName("Smb2FlushRequest Tests") class Smb2FlushRequestTest { private Configuration mockConfig;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; import jcifs.config.BaseConfiguration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; import jcifs.smb.NtStatus; import jcifs.smb.SmbException; class Smb2IoctlResponseTest { // Helper: build a minimal SMB2 header with a given status
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
import org.junit.jupiter.params.provider.ValueSource; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Test class for Smb2CloseRequest functionality */ @DisplayName("Smb2CloseRequest Tests") class Smb2CloseRequestTest { private Configuration mockConfig;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.RequestWithPath; import jcifs.internal.smb2.ServerMessageBlock2Request; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.smb2.lease.Smb2LeaseKey; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * SMB2 Create request message. This command is used to create or open a file or directory
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
byte[] token = negoResp.getSecurityBlob(); final int securityMode = (negoResp.getSecurityMode() & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0 || trans.isSigningEnforced() ? Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED : Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED; boolean anonymous = this.credentials.isAnonymous(); long sessId = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// When int size = request.size(); // Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 4 bytes for cancel structure int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 4 + 7) / 8) * 8; assertEquals(expectedSize, size, "Size calculation should be correct and 8-byte aligned"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
} else { // 4 reserved SMBUtil.writeInt4(this.treeId, dst, dstIndex + 36); } SMBUtil.writeInt8(this.sessionId, dst, dstIndex + 40); return Smb2Constants.SMB2_HEADER_LENGTH; } /** * Reads the SMB2 header from the wire format. * * @param buffer the buffer to read from * @param bufferIndex the starting position in the buffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.fscc.FileBothDirectoryInfo; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.ServerMessageBlock2Response; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; import jcifs.smb.FileEntry; /** * Test class for Smb2QueryDirectoryResponse functionality */ @DisplayName("Smb2QueryDirectoryResponse Tests")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} @Nested @DisplayName("Size Tests") class SizeTests { @Test @DisplayName("Should return correct size") void testSize() { int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 4; // size8 rounds up to 8-byte boundary int expectedAlignedSize = (expectedSize + 7) & ~7; assertEquals(expectedAlignedSize, echoRequest.size()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
testFileId = new byte[16]; new SecureRandom().nextBytes(testFileId); emptyFileId = new byte[16]; Arrays.fill(emptyFileId, (byte) 0); unspecifiedFileId = Smb2Constants.UNSPECIFIED_FILEID; testOutputBuffer = new byte[1024]; } @Test @DisplayName("Should implement RequestWithFileId interface correctly") void testInterfaceImplementation() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0)