Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 168 for CIFSException (0.23 seconds)

  1. src/main/java/jcifs/CIFSException.java

     *
     * @author mbechler
     *
     */
    public class CIFSException extends IOException {
    
        /**
         *
         */
        private static final long serialVersionUID = 7806460518865806784L;
    
        /**
         * Constructs a CIFS exception with no detail message.
         */
        public CIFSException() {
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/CIFSExceptionTest.java

    /**
     * Test class for CIFSException functionality
     */
    @DisplayName("CIFSException Tests")
    class CIFSExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create CIFSException with message")
        void testCIFSExceptionWithMessage() {
            // Given
            String message = "CIFS operation failed";
    
            // When
            CIFSException exception = new CIFSException(message);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/SmbWatchHandleTest.java

        }
    
        /**
         * Test watch() method throwing CIFSException
         */
        @Test
        void testWatchThrowsCIFSException() throws CIFSException {
            // Setup mock behavior
            CIFSException expectedException = new CIFSException("Watch operation failed");
            when(watchHandle.watch()).thenThrow(expectedException);
    
            // Execute and verify
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  4. src/main/java/jcifs/smb/SSPContext.java

         * @return MIC
         * @throws CIFSException if an error occurs calculating the MIC
         */
        byte[] calculateMIC(byte[] data) throws CIFSException;
    
        /**
         * Verifies a Message Integrity Code (MIC) for the given data.
         * @param data the data to verify
         * @param mic the MIC to verify against
         * @throws CIFSException if the MIC verification fails or an error occurs
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

                preauthService.validatePreauthIntegrity(sessionId, incorrectHash);
                fail("Expected CIFSException");
            } catch (CIFSException e) {
                // Expected
            }
    
            assertFalse(context.isValid());
    
            // Further operations on invalid context should fail
            assertThrows(CIFSException.class, () -> {
                preauthService.updatePreauthHash(sessionId, "test".getBytes());
            });
    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)
  6. src/test/java/jcifs/SmbPipeHandleTest.java

         * Sets up the test environment before each test.
         * Initializes a mock {@link SmbPipeResource} and a mock implementation of {@link SmbPipeHandle}.
         * @throws CIFSException if an error occurs during setup.
         */
        @BeforeEach
        public void setUp() throws CIFSException {
            mockPipeResource = mock(SmbPipeResource.class);
            mockSmbPipeHandleInternal = mock(SmbPipeHandleInternal.class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/config/BaseConfigurationTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    import jcifs.ResolverType;
    import jcifs.SmbConstants;
    
    /**
     * Test class for BaseConfiguration
     */
    class BaseConfigurationTest {
    
        private BaseConfiguration config;
    
        @BeforeEach
        void setUp() throws CIFSException {
            config = new BaseConfiguration(false);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. src/main/java/jcifs/SmbTreeHandle.java

        /**
         * Gets the OEM domain name reported by the server
         * @return server reported domain name
         * @throws CIFSException if an error occurs retrieving the domain name
         */
        String getOEMDomainName() throws CIFSException;
    
        /**
         * Gets the name of the share this tree is connected to
         * @return the share we are connected to
         */
        String getConnectedShare();
    
    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)
  9. src/test/java/jcifs/SidResolverTest.java

            doThrow(new CIFSException("Invalid offset")).when(sidResolver)
                    .resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(-1), anyInt());
    
            assertThrows(CIFSException.class, () -> sidResolver.resolveSids(mockContext, testServerName, testSids, -1, 2));
        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_InvalidLength() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/SmbResource.java

         *         <code>false</code> otherwise
         * @throws CIFSException if an error occurs accessing the resource
         */
        boolean exists() throws CIFSException;
    
        /**
         * Fetch a child resource
         *
         * @param name the name of the child resource to resolve
         * @return the child resource
         * @throws CIFSException if an error occurs accessing the resource
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
Back to Top