Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,001 for smb2 (0.04 seconds)

  1. src/main/java/jcifs/smb/SmbFile.java

    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.smb2.create.Smb2CloseRequest;
    import jcifs.internal.smb2.create.Smb2CloseResponse;
    import jcifs.internal.smb2.create.Smb2CreateRequest;
    import jcifs.internal.smb2.create.Smb2CreateResponse;
    import jcifs.internal.smb2.info.Smb2QueryInfoRequest;
    import jcifs.internal.smb2.info.Smb2QueryInfoResponse;
    import jcifs.internal.smb2.info.Smb2SetInfoRequest;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbFileInputStream.java

         * an SMB server represented by the {@link jcifs.smb.SmbFile} parameter. See
         * {@link jcifs.smb.SmbFile} for a detailed description and examples of
         * the smb URL syntax.
         *
         * @param file
         *            An <code>SmbFile</code> specifying the file to read from
         * @throws SmbException if an SMB error occurs
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/util/SMBUtil.java

                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    
        /**
         * SMB2 protocol header template with magic number 0xFE 'SMB'
         */
        public static final byte[] SMB2_HEADER = { (byte) 0xFE, (byte) 'S', (byte) 'M', (byte) 'B', // ProtocolId
                (byte) 64, (byte) 0x00, // StructureSize (LE)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                filePath += "/";
            }
            filePath += fileInfo.getName();
    
            // Ensure proper SMB URL format
            if (!filePath.startsWith("smb://")) {
                if (filePath.startsWith("/")) {
                    filePath = "smb://localhost" + filePath;
                } else {
                    filePath = "smb://localhost/" + filePath;
                }
            }
    
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/util/StringsTest.java

            @DisplayName("maskSecretValue should mask SMB URLs containing credentials")
            @CsvSource({ "'smb://user:password@server/share', 'smb://user:******@server/share'",
                    "'smb://domain\\user:secret@host/path', 'smb://domain\\user:******@host/path'",
                    "'smb2://admin:admin123@192.168.1.1/folder', 'smb2://admin:******@192.168.1.1/folder'",
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            SmbSession result = transport.getSmbSession(ctx, host, domain);
            assertSame(session, result);
            verify(transport).getSmbSession(eq(ctx), eq(host), eq(domain));
        }
    
        // SMB2 detection: true/false and exception path
        @Test
        @DisplayName("isSMB2 returns true/false and can throw")
        void isSMB2_variants() throws Exception {
            when(transport.isSMB2()).thenReturn(true, false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

    package jcifs.internal.smb2;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/InputValidatorTest.java

            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateBufferSize(1001, 1000, "test"));
        }
    
        @Test
        @DisplayName("Test SMB2 buffer size validation")
        void testSmb2BufferSize() {
            assertDoesNotThrow(() -> InputValidator.validateSmb2BufferSize(1000000L, "test"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        @Test
        @DisplayName("Test getSelectedDialect returns SMB1")
        void testGetSelectedDialectSMB1() {
            // Arrange
            when(negotiationResponse.getSelectedDialect()).thenReturn(DialectVersion.SMB1);
    
            // Act
            DialectVersion dialect = negotiationResponse.getSelectedDialect();
    
            // Assert
            assertEquals(DialectVersion.SMB1, dialect);
            verify(negotiationResponse).getSelectedDialect();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/util/SMBUtilTest.java

            assertNotNull(SMBUtil.SMB2_HEADER);
            // The actual header is 68 bytes (4 + 2 + 2 + 2 + 2 + 4 + 2 + 2 + 4 + 4 + 8 + 4 + 4 + 8 + 8 + 8 = 68)
            assertEquals(68, SMBUtil.SMB2_HEADER.length);
    
            // Verify SMB2 header signature
            assertEquals((byte) 0xFE, SMBUtil.SMB2_HEADER[0]);
            assertEquals((byte) 'S', SMBUtil.SMB2_HEADER[1]);
            assertEquals((byte) 'M', SMBUtil.SMB2_HEADER[2]);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top