- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for SMB2_0_INFO_FILE (0.05 sec)
-
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
mockConfig = mock(Configuration.class); } @Test @DisplayName("Test constructor initializes with config and info type/class") void testConstructor() { byte infoType = Smb2Constants.SMB2_0_INFO_FILE; byte infoClass = FileInformation.FILE_INTERNAL_INFO; response = new Smb2QueryInfoResponse(mockConfig, infoType, infoClass); assertNotNull(response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
assertEquals(41, SMBUtil.readInt2(buffer, 64)); // Verify info type and file info class // setFileInfoClass sets the info type to SMB2_0_INFO_FILE (1) assertEquals(Smb2Constants.SMB2_0_INFO_FILE, buffer[66]); assertEquals((byte) 0x08, buffer[67]); // Verify output buffer length assertEquals(0x4000, SMBUtil.readInt4(buffer, 68));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
@DisplayName("Info Level Constants") class InfoLevelConstants { @Test @DisplayName("File info level should be 1") void testInfoFile() { assertEquals(1, Smb2Constants.SMB2_0_INFO_FILE, "File info level must be 1"); } @Test @DisplayName("Filesystem info level should be 2") void testInfoFilesystem() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2Constants.java
/** * Server supports SMB3 encryption */ public static final int SMB2_GLOBAL_CAP_ENCRYPTION = 0x40; /** * File information class */ public static final byte SMB2_0_INFO_FILE = 1; /** * Filesystem information class */ public static final byte SMB2_0_INFO_FILESYSTEM = 2; /** * Security information class */
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/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java
* * @param fileInfoClass * the fileInfoClass to set */ public final void setFileInfoClass(final byte fileInfoClass) { setInfoType(Smb2Constants.SMB2_0_INFO_FILE); this.fileInfoClass = fileInfoClass; } /** * Sets the filesystem information class for the query * * @param fileInfoClass * the fileInfoClass to set
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/info/Smb2QueryInfoResponse.java
} private static Decodable createInformation(final byte infoType, final byte infoClass) throws SMBProtocolDecodingException { 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);
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/Smb2SetInfoRequest.java
* @param fi * the file information to set */ public <T extends FileInformation & Encodable> void setFileInformation(final T fi) { setInfoType(Smb2Constants.SMB2_0_INFO_FILE); setFileInfoClass(fi.getFileInformationLevel()); setInfo(fi); } /** * Sets the encodable information object for this request * * @param info
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
infoTypeField.setAccessible(true); byte actualInfoType = (byte) infoTypeField.get(request); assertEquals(Smb2Constants.SMB2_0_INFO_FILE, actualInfoType); Field fileInfoClassField = Smb2SetInfoRequest.class.getDeclaredField("fileInfoClass"); fileInfoClassField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0)