- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 148 for SmbException (0.25 seconds)
-
src/main/java/jcifs/smb1/smb1/NtlmContext.java
* @param offset offset into the token array * @param len length of token data * @return the output token bytes * @throws SmbException if an error occurs during context initialization */ public byte[] initSecContext(byte[] token, final int offset, final int len) throws SmbException { switch (state) { case 1: final Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
* @param loc * @return tree handle * @throws SmbException */ public SmbTreeHandleImpl connectWrapException(final SmbResourceLocatorImpl loc) throws SmbException { try { return connect(loc); } catch (final SmbException se) { throw se; } catch (final IOException ioe) { throw new SmbException("Failed to connect to server", ioe); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
} @Test @DisplayName("connectLogon propagates SmbException from implementation") void connectLogon_throws_propagates() throws Exception { // Arrange doThrow(new SmbException("login failed")).when(tree).connectLogon(context); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> tree.connectLogon(context));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/SamrDomainHandle.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; /** * Handle for Security Account Manager (SAM) domain operations. * This class represents an open handle to a SAM domain and provides * operations for managing domain users, groups, and aliases. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
void invalidUrlPathThrows() throws Exception { // Override the default setup for this specific test URL invalidUrl = new URL("smb://server/share/dir"); // no trailing '/' when(locator.getURL()).thenReturn(invalidUrl); SmbException ex =
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java
* @throws SmbException if an SMB protocol error occurs * @throws GeneralSecurityException if a security error occurs during authentication */ public SmbComSessionSetupAndX(final CIFSContext tc, final SmbComNegotiateResponse negotiated, final ServerMessageBlock andx, final Object cred) throws SmbException, GeneralSecurityException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmContext.java
} @Override public byte[] initSecContext(final byte[] token, final int offset, final int len) throws SmbException { return switch (this.state) { case 1 -> makeNegotiate(token); case 2 -> makeAuthenticate(token); default -> throw new SmbException("Invalid state"); }; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// After 3 failures, account should be locked try { rateLimiter.checkAttempt(username, ip); fail("Should throw SmbException for locked account"); } catch (SmbException e) { assertTrue(e.getMessage().contains("locked out"), "Should indicate account lockout"); } } @Test public void testIpRateLimit() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmContextTest.java
// Try to call again SmbException e = assertThrows(SmbException.class, () -> { context.initSecContext(new byte[0], 0, 0); }); assertEquals("Invalid state", e.getMessage()); } @Test void testInitSecContext_malformedType2Message() throws SmbException { // Test handling of a malformed Type 2 messageCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0)