- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for Smb2Constants (0.05 sec)
-
src/main/java/jcifs/internal/smb2/Smb2Constants.java
* * This class contains protocol-specific constants, command codes, * flags, and other values used in SMB2/SMB3 communication. * * @author mbechler */ public final class Smb2Constants { /** * */ private Smb2Constants() { } /** * SMB2 header length in bytes */ public static final int SMB2_HEADER_LENGTH = 64; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
boolean shouldEnforce = (securityMode & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0; assertEquals(shouldEnforce, request.isSigningEnforced()); } private static Stream<Arguments> provideSecurityModes() { return Stream.of(Arguments.of(0), Arguments.of(Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED), Arguments.of(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED),
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/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java
return switch (infoType) { case Smb2Constants.SMB2_0_INFO_FILE -> createFileInformation(infoClass); case Smb2Constants.SMB2_0_INFO_FILESYSTEM -> createFilesystemInformation(infoClass); case Smb2Constants.SMB2_0_INFO_QUOTA -> createQuotaInformation(infoClass); case Smb2Constants.SMB2_0_INFO_SECURITY -> createSecurityInformation(infoClass);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java
setInfoType(Smb2Constants.SMB2_0_INFO_FILE); this.fileInfoClass = fileInfoClass; } /** * Sets the filesystem information class for the query * * @param fileInfoClass * the fileInfoClass to set */ public final void setFilesystemInfoClass(final byte fileInfoClass) { setInfoType(Smb2Constants.SMB2_0_INFO_FILESYSTEM);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
package jcifs.internal.smb2.io; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.smb2.RequestWithFileId; import jcifs.internal.smb2.ServerMessageBlock2Request; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.smb2.rdma.RdmaChannelInfo; import jcifs.internal.util.SMBUtil; /** * SMB2 Read request message. * * This command is used to read data from a file that has been
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
request.encode(buffer, 0); // Then int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH; int securityBufferOffset = SMBUtil.readInt2(buffer, bodyOffset + 12); // The offset should point to the location after the fixed structure (relative to header start) int expectedOffset = Smb2Constants.SMB2_HEADER_LENGTH + 24; while ((expectedOffset % 8) != 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId); int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; byte[] blob = new byte[] { 10, 20, 30, 40, 50 }; int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8; // directly after fixed part int sessionFlags = Smb2SessionSetupResponse.SMB2_SESSION_FLAGS_IS_GUEST;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
assertNotNull(digest); } @Test @DisplayName("Should create digest for SMB 2.1 with HmacSHA256") void testConstructorSmb210() throws GeneralSecurityException { Smb2SigningDigest digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0210, null); assertNotNull(digest);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
switch (dialect) { case Smb2Constants.SMB2_DIALECT_0202: case Smb2Constants.SMB2_DIALECT_0210: this.algorithmName = "HmacSHA256"; this.provider = null; this.signingKey = sessionKey.clone(); break; case Smb2Constants.SMB2_DIALECT_0300: case Smb2Constants.SMB2_DIALECT_0302:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
void testDeriveSigningKey_DifferentDialects() { // When byte[] signingKey300 = Smb3KeyDerivation.deriveSigningKey(Smb2Constants.SMB2_DIALECT_0300, sessionKey, preauthIntegrity); byte[] signingKey311 = Smb3KeyDerivation.deriveSigningKey(Smb2Constants.SMB2_DIALECT_0311, sessionKey, preauthIntegrity); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0)