- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 148 for SmbException (0.08 seconds)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @param sourceIp the source IP address * @return true if attempt is allowed, false if rate limited * @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limitCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("dispose wraps GSSException into SmbException") void dispose_failure_wraps() throws Exception { doThrow(new GSSException(GSSException.FAILURE)).when(gssContext).dispose(); SmbException ex = assertThrows(SmbException.class, () -> ctx.dispose()); assertTrue(ex.getMessage().contains("Context disposal failed")); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
rpc.domains.count = 0; rpc.domains.domains = new lsarpc.LsarTrustInformation[0]; return null; }).when(handle).sendrecv(any()); SmbException ex = assertThrows(SmbException.class, () -> cache.resolveSids(handle, policy, sids)); assertEquals(NtStatus.NT_STATUS_ACCESS_DENIED, ex.getNtStatus()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; import jcifs.smb.SID; import jcifs.smb.SmbException; /** * Test class for ACE (Access Control Entry) */ class ACETest { private ACE ace; private byte[] testBuffer; @BeforeEach void setUp() { ace = new ACE(); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SID.java
* @param textual the textual representation of the SID * @throws SmbException if the textual format is invalid */ public SID(final String textual) throws SmbException { final StringTokenizer st = new StringTokenizer(textual, "-"); if (st.countTokens() < 3 || !st.nextToken().equals("S")) { // need S-N-M throw new SmbException("Bad textual SID format: " + textual); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
} @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException { // Not used within these tests throw new SmbException("not used in tests"); } @Override public Subject getSubject() { return null; // not relevant for renew() behavior }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java
package jcifs.dcerpc.msrpc; import java.io.IOException; import jcifs.dcerpc.DcerpcError; import jcifs.dcerpc.DcerpcException; import jcifs.dcerpc.DcerpcHandle; import jcifs.dcerpc.rpc; import jcifs.smb.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.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
setResults(qr, new FileEntry[] { fe3 }); return qr; } else { // Third query: no more files throw new SmbException(NtStatus.NT_STATUS_NO_MORE_FILES, false); } } return null; }).when(tree).send(any(Request.class)); // Act: create iterator and enumerate
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbAuthException.java
* <p> * See <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for more information about <code>SmbAuthException</code>. */ public class SmbAuthException extends SmbException { SmbAuthException(final int errcode) { super(errcode, null); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbOperationException.java
} private long extractNtStatus(Throwable cause) { if (cause instanceof SmbException) { return ((SmbException) cause).getNtStatus(); } return 0; } private String extractServerMessage(Throwable cause) { if (cause instanceof SmbException) { // Try to get server message from SMB exception return cause.getMessage(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.5K bytes - Click Count (0)