Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 150 for SmbException (0.05 sec)

  1. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                return trans.getServerEncryptionKey();
            } catch (final SmbException e) {
                throw e;
            } catch (final IOException e) {
                throw new SmbException("Connection failed", e);
            }
        }
    
        @Override
        public void logon(final CIFSContext tf, final Address dc) throws SmbException {
            logon(tf, dc, 0);
        }
    
        @Override
        @Deprecated
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Arrange
                SmbFile parent = new SmbFile(url);
    
                // Act + Assert
                SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
    
                // Assert message indicates which validation failed
                if (expectDirSlashMsg) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. 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];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            SmbAuthException ex = new SmbAuthException(errCode);
    
            // Assert: type, message derived from code, status mapping, and no cause
            assertNotNull(ex);
            assertTrue(ex instanceof SmbException);
            assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping");
            assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            // Happy path delegates; invalid case propagates SmbException
            when(treeConnection.hasCapability(123)).thenReturn(true);
            assertTrue(handle.hasCapability(123));
            verify(treeConnection).hasCapability(123);
    
            // Exception path
            when(treeConnection.hasCapability(999)).thenThrow(new SmbException("Not connected"));
            SmbException ex = assertThrows(SmbException.class, () -> handle.hasCapability(999));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        @Test
        @DisplayName("getFid/getFileId throw SmbException when invalid")
        void getters_throw_whenInvalid() {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(1L, true, true);
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 0x01, 0x02 }, tree, "//x", 0, 0, 0, 0, 0L);
            // invalidate
            h.markClosed();
    
            SmbException ex1 = assertThrows(SmbException.class, h::getFid);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. 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 */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/CredentialsInternal.java

         * @param doSigning whether message signing should be enabled
         * @return a new SSP authentication context
         * @throws SmbException if context creation fails
         */
        SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException;
    
        /**
         * Get the security subject associated with these credentials.
         * @return subject associated with the credentials
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            assertEquals(1, od.getChunksWritten());
            assertEquals(2, od.getChunkBytesWritten());
            assertEquals(3, od.getTotalBytesWritten());
    
            // Type mismatch should raise SmbException
            assertThrows(SmbException.class, () -> resp.getOutputData(SrvRequestResumeKeyResponse.class));
        }
    
        @Test
        void decodesPipePeekOnBufferOverflowStatus() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top