Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for isSMB2 (0.06 sec)

  1. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception {
            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(handle.getFileId()).thenReturn(fileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

        @Mock
        Configuration mockConfig;
    
        private SmbFileInputStream newStream() throws SmbException {
            // Constructor that avoids external I/O; stays in-memory
            when(mockTree.isSMB2()).thenReturn(true); // default SMB2 for simple happy-path
            return new SmbFileInputStream(mockFile, mockTree, mockHandle);
        }
    
        @BeforeEach
        void setUp() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

            this.signingEnforced = signingEnforced;
            setFlags2(config.getFlags2());
    
            if (config.getMinimumVersion().isSMB2()) {
                this.dialects = new String[] { "SMB 2.???", "SMB 2.002" };
            } else if (config.getMaximumVersion().isSMB2()) {
                this.dialects = new String[] { "NT LM 0.12", "SMB 2.???", "SMB 2.002" };
            } else {
                this.dialects = new String[] { "NT LM 0.12" };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                try {
                    entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress());
                } catch (final IOException ioe) {
                    if (th.isSMB2()) {
                        throw ioe;
                    }
                    log.debug("doMsrpcShareEnum failed", ioe);
                    entries = doNetShareEnum(th);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileInputStream.java

            this.openFlags = openFlags;
            this.access = access;
            this.sharing = sharing;
    
            try (SmbTreeHandleInternal th = file.ensureTreeConnected()) {
                this.smb2 = th.isSMB2();
                if (file.getType() != SmbConstants.TYPE_NAMED_PIPE) {
                    try (SmbFileHandle h = ensureOpen()) {}
                    this.openFlags &= ~(SmbConstants.O_CREAT | SmbConstants.O_TRUNC);
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertTrue(tree.isInDomainDfs());
        }
    
        // Test case for treeConnect method with SMB1
        @Test
        void testTreeConnectSmb1() throws CIFSException, IOException {
            when(transport.isSMB2()).thenReturn(false);
            when(transport.getContext()).thenReturn(context);
            when(session.getTargetHost()).thenReturn("localhost");
    
            // Mock negotiate response for SMB1
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            }
        }
    
        /**
         * @return whether this tree handle uses SMB2
         */
        @Override
        public boolean isSMB2() {
            try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
                return transport.isSMB2();
            } catch (final SmbException e) {
                log.debug("Failed to connect for determining SMB2 support", e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        void testIsOpenAndIsStale() throws CIFSException {
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
    
            // SMB2 branch in ensureOpen uses openUnshared(String, ...)
            when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fileHandle);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbCopyUtil.java

                final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException {
    
            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
                    serverSideCopy(src, dest, sh, dh, false);
                    return;
                } catch (final SmbUnsupportedOperationException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                throw new SmbException("Pipe handle already closed");
            }
    
            if (!isOpen()) {
                try (SmbTreeHandleImpl th = ensureTreeConnected()) {
    
                    if (th.isSMB2()) {
                        this.handle = this.pipe.openUnshared(this.uncPath, 0, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0);
                        return this.handle.acquire();
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top