- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 168 for CIFSException (0.09 seconds)
-
src/main/java/jcifs/util/SmbCircuitBreaker.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 33.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
doThrow(thrown).when(trace).connect(loc); // Act & Assert: both UnknownHostException and IOException should become CIFSException (SmbException) CIFSException ex = assertThrows(CIFSException.class, () -> trace.connectWrapException(loc)); assertTrue(ex.getMessage() != null && ex.getMessage().contains("Failed to connect to server")); assertSame(thrown, ex.getCause());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
*/ package jcifs.smb; import java.util.Arrays; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSException; import jcifs.internal.smb2.lease.DirectoryCacheScope; import jcifs.internal.smb2.lease.DirectoryLeaseManager; import jcifs.internal.smb2.lease.Smb2LeaseKey; import jcifs.internal.smb2.lease.Smb2LeaseState; /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; import jcifs.ResourceFilter; import jcifs.SmbConstants; import jcifs.SmbResource; @ExtendWith(MockitoExtension.class) class ShareEnumIteratorTest { @Mock ResourceFilter filter;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
} this.fp = 0L; } catch (final CIFSException e) { throw SmbException.wrap(e); } } /** * @return * @throws SmbException */ synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { // ensure file is open if (this.handle == null || !this.handle.isValid()) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/AuthenticationProvider.java
* @param challenge the server challenge (may be null for some auth types) * @return authentication response data * @throws CIFSException if authentication fails */ byte[] authenticate(CIFSContext context, byte[] challenge) throws CIFSException; /** * Gets the session key after successful authentication * * @return the session key or null if not available */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 3.9K bytes - Click Count (1) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
import java.net.URL; import java.net.UnknownHostException; import java.util.Objects; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.Address; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.DfsReferralData; import jcifs.NetbiosAddress; import jcifs.RuntimeCIFSException; import jcifs.SmbConstants; import jcifs.SmbResourceLocator; import jcifs.internal.util.StringUtil;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 23.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
void testInitSecContextInvalidTokenType(byte firstByte) throws Exception { SpnegoContext ctx = newContext(); // Invalid first byte should be rejected by token parsing CIFSException ex = assertThrows(CIFSException.class, () -> ctx.initSecContext(new byte[] { firstByte }, 0, 1)); assertEquals("Invalid token", ex.getMessage()); // Ensure mechContext was not engaged due to early failure
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
assertNull(ex.getMessage(), "Default message should be null"); assertNull(ex.getCause(), "Default cause should be null"); assertTrue(ex instanceof CIFSException, "Should be a CIFSException"); assertTrue(ex instanceof IOException, "Should be an IOException"); } @Test @DisplayName("Should create SpnegoException with message") void testWithMessage() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString()); // Assert - type hierarchy: subclass of CIFSException and IOException assertTrue(ex instanceof jcifs.CIFSException, "Should extend CIFSException"); assertTrue(ex instanceof IOException, "Should be an IOException (checked)"); } @ParameterizedTest(name = "Message-only ctor preserves message: [{0}]")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0)