Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 148 for SmbException (0.18 seconds)

  1. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SIDCacheImpl.java

            switch (rpc.retval) {
            case 0:
            case NtStatus.NT_STATUS_NONE_MAPPED:
            case 0x00000107: // NT_STATUS_SOME_NOT_MAPPED
                break;
            default:
                throw new SmbException(rpc.retval, false);
            }
    
            for (int si = 0; si < sids.length; si++) {
                final SID out = sids[si].unwrap(SID.class);
                final LsarTranslatedName resp = rpc.names.names[si];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            when(locator.getURL()).thenReturn(createSmbURL("smb://server/"));
    
            // When & Then: Constructor should throw SmbException
            SmbException exception = assertThrows(SmbException.class, () -> new NetServerEnumIterator(parent, treeHandle, "*", 0, null));
    
            assertTrue(exception.getMessage().contains("invalid"));
            verify(treeHandle, never()).acquire();
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/http/NtlmHttpFilter.java

                    }
                }
                return new NtlmChallenge(trans.getServerEncryptionKey(), dc);
            } catch (final SmbException e) {
                throw e;
            } catch (final IOException e) {
                throw new SmbException("Connection failed", e);
            }
        }
    
        /**
         * @return
         */
        private CIFSContext getTransportContext() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/smb1/DfsReferral.java

    package jcifs.smb1.smb1;
    
    import java.util.Map;
    
    /**
     * Represents a DFS (Distributed File System) referral in SMB1 protocol.
     * This class extends SmbException to provide DFS referral information when a DFS path is encountered.
     */
    public class DfsReferral extends SmbException {
    
        /** Number of characters consumed from the path */
        public int pathConsumed;
        /** Time to live for this referral in seconds */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbSessionInternal.java

         *
         * @return the transport for this session
         */
        SmbTransport getTransport();
    
        /**
         * Connect to the logon share
         *
         * @throws SmbException if the connection fails
         */
        void treeConnectLogon() throws SmbException;
    
        /**
         * Gets or creates an SMB tree connection for the specified share and service.
         *
         * @param share the share name to connect to
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrPolicyHandle.java

    import java.io.IOException;
    
    import jcifs.smb1.dcerpc.DcerpcError;
    import jcifs.smb1.dcerpc.DcerpcException;
    import jcifs.smb1.dcerpc.DcerpcHandle;
    import jcifs.smb1.dcerpc.rpc;
    import jcifs.smb1.smb1.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.
     */
    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/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning)
                throws SmbException {
            checkNotClosed();
    
            // Check if authentication has expired
            if (isExpired()) {
                throw new SmbException("Authentication has expired. Please re-authenticate.");
            }
    
            // Generate session ID for secure key management
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

                rpc.retval = errorCode; // Simulate error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new SamrDomainHandle(mockDcerpcHandle, mockPolicyHandle, access, mockSid);
            });
            assertEquals(errorCode, thrown.getNtStatus());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
Back to Top