Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 150 for SmbException (0.09 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

         * @param sourceIp the source IP address
         * @return true if attempt is allowed, false if rate limited
         * @throws SmbException if account is locked out
         */
        public boolean checkAttempt(String username, String sourceIp) throws SmbException {
            if (closed.get()) {
                throw new IllegalStateException("Rate limiter is closed");
            }
    
            // Check global rate limit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java

    package jcifs.dcerpc.msrpc;
    
    import java.io.IOException;
    
    import jcifs.dcerpc.DcerpcError;
    import jcifs.dcerpc.DcerpcException;
    import jcifs.dcerpc.DcerpcHandle;
    import jcifs.dcerpc.rpc;
    import jcifs.smb.SmbException;
    
    /**
     * Handle for Security Account Manager (SAM) policy operations.
     * This class represents an open handle to a SAM server and provides
     * high-level access to SAM database operations.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            assertNull(ex.getCause(), "Cause should be null by default");
            assertNull(ex.getRootCause(), "Root cause should be null by default");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
        }
    
        /**
         * Ensures the exception is thrown and captured via assertThrows with the right message.
         */
        @Test
        void assertThrowsCapturesExceptionAndMessage() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java

            SmbFile dir = Mockito.mock(SmbFile.class);
            SmbFilenameFilter filter = (d, n) -> {
                throw new SmbException("forced exception");
            };
            Exception e = assertThrows(Exception.class, () -> filter.accept(dir, "any"));
            assertTrue(e instanceof SmbException);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileFilter.java

         *
         * @param file the SMB file to test for inclusion
         * @return true if the file should be included, false otherwise
         * @throws SmbException if an error occurs while accessing the file
         */
        boolean accept(SmbFile file) throws SmbException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeHandleInternal.java

        /**
         * Releases this tree handle back to the pool for reuse
         */
        void release();
    
        /**
         * Ensures that DFS referrals have been resolved for this tree
         * @throws SmbException if an SMB-specific error occurs
         * @throws CIFSException if a general CIFS error occurs
         */
        void ensureDFSResolved() throws CIFSException;
    
        /**
         * Checks if the server has the specified capability
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileFilter.java

         *
         * @param file the SMB file to test for inclusion
         * @return whether the given file should be included
         * @throws SmbException if an error occurs while accessing the file
         */
        boolean accept(SmbFile file) throws SmbException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFilenameFilter.java

         * @param dir the directory containing the file
         * @param name the name of the file
         * @return whether the given filename should be included
         * @throws SmbException if an SMB error occurs during evaluation
         */
        boolean accept(SmbFile dir, String name) throws SmbException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

         *
         * @see jcifs.SmbWatchHandle#watch()
         */
        @Override
        public List<FileNotifyInformation> watch() throws CIFSException {
            if (!this.handle.isValid()) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try (SmbTreeHandleImpl th = this.handle.getTree()) {
    
                CommonServerMessageBlockRequest req;
                NotifyResponse resp = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top