Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 168 for CIFSException (0.36 seconds)

  1. src/test/java/jcifs/SmbResourceTest.java

                assertEquals(1, existsExceptions.length, "exists() should declare CIFSException");
                assertEquals(CIFSException.class, existsExceptions[0], "Should declare CIFSException");
                assertEquals(1, getTypeExceptions.length, "getType() should declare CIFSException");
                assertEquals(CIFSException.class, getTypeExceptions[0], "Should declare CIFSException");
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  2. src/test/java/jcifs/DfsResolverTest.java

        }
    
        // Test for isTrustedDomain method
        @Test
        void testIsTrustedDomain_DfsDisabled() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertFalse(dfsResolver.isTrustedDomain(mockContext, "anyDomain"));
        }
    
        @Test
        void testIsTrustedDomain_NoUserDomain() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/SmbFileHandleTest.java

        }
    
        /**
         * Test release() when a CIFSException is thrown.
         *
         * @throws CIFSException
         */
        @Test
        void testRelease_throwsCIFSException() throws CIFSException {
            doThrow(new CIFSException("Failed to release")).when(smbFileHandle).release();
            assertThrows(CIFSException.class, () -> smbFileHandle.release(), "release() should throw CIFSException when releasing fails.");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/SidResolver.java

         *            methods.
         * @throws CIFSException if there is an error resolving the SIDs
         */
        void resolveSids(CIFSContext tc, String authorityServerName, SID[] sids) throws CIFSException;
    
        /**
         * Resolve part of an array of SIDs using a cache and at most one MSRPC request.
         *
         * @param tc the CIFS context to use
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param data the data to compress
         * @param algorithm the compression algorithm to use
         * @return the compressed data
         * @throws CIFSException if compression fails
         */
        byte[] compress(byte[] data, int algorithm) throws CIFSException;
    
        /**
         * Compresses data using the specified algorithm with offset and length.
         *
         * @param data the data buffer
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SSPContextTest.java

                byte[] buf = new byte[] { 1, 2, 3 };
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, -1, 1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 0, -1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 3, 1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 2, 2));
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
            return compress(data, 0, data.length, algorithm);
        }
    
        @Override
        public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException {
            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/ntlmssp/av/AvPairs.java

        }
    
        /**
         * Decode a list of AvPairs
         *
         * @param data the encoded AV pairs data
         * @return individual pairs
         * @throws CIFSException if decoding fails
         */
        public static List<AvPair> decode(final byte[] data) throws CIFSException {
            final List<AvPair> pairs = new LinkedList<>();
            int pos = 0;
            boolean foundEnd = false;
            while (pos + 4 <= data.length) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/DfsResolver.java

         * @throws CIFSException if the operation fails
         */
        boolean isTrustedDomain(CIFSContext tf, String domain) throws CIFSException;
    
        /**
         * Get a connection to the domain controller for a given domain
         *
         * @param tf the CIFS context
         * @param domain the domain name
         * @return connection to the domain controller
         * @throws CIFSException if the connection fails
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/config/SecurityConfigurationTest.java

    package jcifs.config;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    
    /**
     * Security configuration tests
     *
     * Verifies that default security settings are properly configured
     * according to SMB security best practices.
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top