- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 148 for SmbException (0.07 seconds)
-
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) -
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 capabilityCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3K bytes - Click Count (0) -
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) -
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) -
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) -
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) -
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 toCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0) -
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) -
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));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) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
"Default message should match the class contract"); assertNull(ex.getCause(), "No cause expected from default constructor"); assertTrue(ex instanceof SmbException, "Should be an SmbException"); // toString should include the class name and the message String ts = ex.toString(); assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0)