- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 30 for isSMB2 (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/DialectVersionTest.java
assertFalse(DialectVersion.SMB1.isSMB2()); // SMB2+ versions should be identified as SMB2 assertTrue(DialectVersion.SMB202.isSMB2()); assertTrue(DialectVersion.SMB210.isSMB2()); assertTrue(DialectVersion.SMB300.isSMB2()); assertTrue(DialectVersion.SMB302.isSMB2()); assertTrue(DialectVersion.SMB311.isSMB2()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
} /** * Test for isSMB2() method. * Verifies that the method returns the correct SMB protocol version status. */ @Test void testIsSMB2() { when(smbTreeHandle.isSMB2()).thenReturn(true); assertTrue(smbTreeHandle.isSMB2(), "isSMB2() should return true"); when(smbTreeHandle.isSMB2()).thenReturn(false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Test @DisplayName("isSMB2 returns true/false and can throw") void isSMB2_variants() throws Exception { when(transport.isSMB2()).thenReturn(true, false); assertTrue(transport.isSMB2()); assertFalse(transport.isSMB2()); verify(transport, times(2)).isSMB2(); doThrow(new SmbException("query failed")).when(transport).isSMB2();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) -
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" };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.5K bytes - Click Count (3) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
@Nested class CopyFileExceptions { private SmbTreeHandleImpl newTreeHandle(boolean isSmb2) throws Exception { SmbTreeHandleImpl th = mock(SmbTreeHandleImpl.class); lenient().when(th.isSMB2()).thenReturn(isSmb2); return th; } private CIFSContext ctxWithIgnore(boolean ignore) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/SmbTreeHandle.java
*/ boolean isSameTree(SmbTreeHandle th); /** * Checks if this tree handle uses SMB2 or later protocol * @return whether this tree handle uses SMB2+ */ boolean isSMB2(); /** * Gets the remote host name for this tree connection * @return the remote host name */ String getRemoteHostName(); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
verify(transport, times(4)).close(); } @Test @DisplayName("isSMB2 true and exception fallback to false") void isSMB2Cases() throws Exception { // Happy path returns true; transport exception path returns false when(transport.isSMB2()).thenReturn(true); assertTrue(handle.isSMB2()); reset(transport); when(session.getTransport()).thenReturn(transport);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0) -
src/main/java/jcifs/DialectVersion.java
this.smb2 = true; this.dialect = dialectId; } /** * Check if this is an SMB2 dialect version * * @return the smb2 */ public final boolean isSMB2() { return this.smb2; } /** * Get the SMB2 dialect identifier * * @return the dialect */ public final int getDialect() { if (!this.smb2) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.3K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportInternal.java
/** * Checks if this transport uses the SMB2 protocol. * * @return whether this is a SMB2 connection * @throws SmbException if an error occurs checking protocol version */ boolean isSMB2() throws SmbException; /** * Gets the number of currently pending requests. * * @return number of inflight requests */ int getInflightRequests();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0)