Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for canReuse (0.05 sec)

  1. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        }
    
        @Test
        @DisplayName("Test canReuse returns false with force signing")
        void testCannotReuseWithForceSigning() {
            // Arrange
            when(negotiationResponse.canReuse(cifsContext, true)).thenReturn(false);
    
            // Act
            boolean result = negotiationResponse.canReuse(cifsContext, true);
    
            // Assert
            assertFalse(result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            return getNegotiatedMpxCount();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#canReuse(jcifs.CIFSContext, boolean)
         */
        @Override
        public boolean canReuse(final CIFSContext tc, final boolean forceSigning) {
            return this.getConfig().equals(tc.getConfig());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Mock the negotiation response
            when(negotiationResponse.isSigningRequired()).thenReturn(false);
            when(negotiationResponse.isSigningNegotiated()).thenReturn(false);
            when(negotiationResponse.canReuse(any(CIFSContext.class), anyBoolean())).thenReturn(true);
    
            // Use reflection to set the negotiated response
            Field negotiatedField = SmbTransportImpl.class.getDeclaredField("negotiated");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            return this.supportsEncryption;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#canReuse(jcifs.CIFSContext, boolean)
         */
        @Override
        public boolean canReuse(final CIFSContext tc, final boolean forceSigning) {
            return getConfig().equals(tc.getConfig());
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // When same config
            assertTrue(response.canReuse(mockContext, false));
    
            // When different config
            Configuration otherConfig = mock(Configuration.class);
            CIFSContext otherContext = mock(CIFSContext.class);
            when(otherContext.getConfig()).thenReturn(otherConfig);
            assertFalse(response.canReuse(otherContext, false));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                            }
                            continue;
                        }
    
                        if (!conn.getNegotiateResponse().canReuse(tc, forceSigning)) {
                            if (log.isTraceEnabled()) {
                                log.trace("Cannot reuse, different config " + conn);
                            }
                            continue;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top