- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 148 for SmbException (0.07 seconds)
-
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* * @param url An smb URL string representing the file to write to * @throws SmbException if an SMB error occurs * @throws MalformedURLException if the URL is not properly formatted * @throws UnknownHostException if the host cannot be resolved */ public SmbFileOutputStream(final String url) throws SmbException, MalformedURLException, UnknownHostException { this(url, false); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
FileEntry[] entries; if (u.getPath().lastIndexOf('/') != u.getPath().length() - 1) { throw new SmbException(u.toString() + " directory must end with '/'"); } if (locator.getType() != SmbConstants.TYPE_SERVER) { throw new SmbException("The requested list operations is invalid: " + u.toString()); } final Set<FileEntry> set = new HashSet<>();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx)); SmbException original = new SmbException("original"); doThrow(original).when(trace).connect(loc); // Act & Assert SmbException ex = assertThrows(SmbException.class, () -> trace.connectWrapException(loc)); assertSame(original, ex); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
} }; SmbException ex2 = assertThrows(SmbException.class, () -> c2.connectWrapException(loc)); assertTrue(ex2.getMessage().contains("Failed to connect to server")); SmbTreeConnection c3 = new SmbTreeConnection(ctx) { @Override public SmbTreeHandleImpl connect(SmbResourceLocatorImpl loc) throws SmbException { throw new SmbException("boom");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SambaHelperTest.java
import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.unit.UnitFessTestCase; import org.codelibs.fess.util.ComponentUtil; import org.codelibs.jcifs.smb.SID; import org.codelibs.jcifs.smb.impl.SmbException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; public class SambaHelperTest extends UnitFessTestCase { public SambaHelper sambaHelper; @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 14.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandle.java
*/ package jcifs.smb1.dcerpc.msrpc; import java.io.IOException; import jcifs.smb1.dcerpc.DcerpcHandle; import jcifs.smb1.dcerpc.rpc; import jcifs.smb1.smb1.SmbException; /** * LSA policy handle for Local Security Authority operations. */ public class LsaPolicyHandle extends rpc.policy_handle { DcerpcHandle handle; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
} /** * Establishes a connection to the SMB server. * * @throws SmbException if the connection fails */ public void connect() throws SmbException { try { super.connect(RESPONSE_TIMEOUT); } catch (final TransportException te) { throw new SmbException("Failed to connect: " + address, te); } } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
} @Test @DisplayName("accept: propagates SmbException thrown by dependency") void accept_propagatesSmbException() throws Exception { // Arrange: filter delegates to isDirectory which may throw SmbException SmbFileFilter filter = f -> f.isDirectory(); SmbException boom = new SmbException("io error"); when(smbFile.isDirectory()).thenThrow(boom);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SigningDigest.java
* * @param macSigningKey the MAC signing key for message authentication * @param bypass whether to bypass MAC signing * @throws SmbException if MD5 algorithm is not available */ public SigningDigest(final byte[] macSigningKey, final boolean bypass) throws SmbException { try { digest = MessageDigest.getInstance("MD5"); } catch (final NoSuchAlgorithmException ex) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} @Override public boolean hasCapability(final int cap) throws SmbException { return getNegotiateResponse().haveCapabilitiy(cap); } /** * @return the negotiated * @throws SmbException */ SmbNegotiationResponse getNegotiateResponse() throws SmbException { try { if (this.negotiated == null) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)