Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for canReuse (0.25 sec)

  1. 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)
  2. 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)
  3. 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