Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 35 for RuntimeCIFSException (0.36 seconds)

  1. src/main/java/jcifs/RuntimeCIFSException.java

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

    /**
     * Test class for RuntimeCIFSException functionality
     */
    @DisplayName("RuntimeCIFSException Tests")
    class RuntimeCIFSExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create RuntimeCIFSException with default constructor")
        void testDefaultConstructor() {
            // When
            RuntimeCIFSException exception = new RuntimeCIFSException();
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/Strings.java

    package jcifs.util;
    
    import java.io.UnsupportedEncodingException;
    import java.nio.charset.Charset;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    
    /**
     * Utility class for string manipulation and conversion operations in the jCIFS library.
     * Provides methods for encoding, decoding, and manipulating strings in SMB operations.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            // Validates usage counting and that an extra release() throws RuntimeCIFSException
            // First close -> usage 1 -> 0, triggers treeConnection.release()
            handle.close();
            verify(treeConnection, times(1)).release();
    
            // Second release -> usage 0 -> -1 triggers RuntimeCIFSException
            RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, () -> handle.release());
    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)
  5. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            assertNull(exception.getCause(), "Default constructor should have null cause");
            assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
            assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException");
        }
    
        @Test
        @DisplayName("Message constructor should create exception with specified message")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/util/StringsTest.java

            @Test
            @DisplayName("getOEMBytes should throw RuntimeCIFSException for unsupported encoding")
            void testGetOEMBytesWithUnsupportedEncoding() {
                // Given
                Configuration mockConfig = mock(Configuration.class);
                when(mockConfig.getOemEncoding()).thenReturn("INVALID-ENCODING");
    
                // When & Then
                RuntimeCIFSException exception = assertThrows(RuntimeCIFSException.class, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

     */
    
    package jcifs.internal.smb1.com;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    import jcifs.internal.SmbNegotiationRequest;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.util.Strings;
    
    /**
     * SMB1 Negotiate Protocol request message.
     *
    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)
  8. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            c.release();
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("release below zero throws RuntimeCIFSException")
        void release_belowZero_throws() {
            SmbTreeConnection c = newConn();
            RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, c::release);
            assertTrue(ex.getMessage().toLowerCase().contains("usage count"));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 13K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                    } catch (final GeneralSecurityException e) {
                        throw new RuntimeCIFSException("Failed to encrypt password", e);
                    }
                    this.passwordLength = this.password.length;
                } else if (this.ctx.getConfig().isDisablePlainTextPasswords()) {
                    throw new RuntimeCIFSException("Plain text passwords are disabled");
                } else {
                    // plain text
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.internal.smb1.trans.nt;
    
    import java.io.IOException;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    import jcifs.internal.dtyp.SecurityDescriptor;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Response for SMB1 NT Transaction security descriptor query.
     *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top