- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for canReuse (0.24 sec)
-
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) -
src/main/java/jcifs/internal/SmbNegotiationResponse.java
* * @param tc the CIFS context to check compatibility with * @param forceSigning whether signing is being forced * @return whether a connection can be reused for this config */ boolean canReuse(CIFSContext tc, boolean forceSigning);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
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) -
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) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
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) -
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)